Greasy Fork is available in English.
自动剔除外国网站内掺杂的固定政治内容
// ==UserScript==
// @name 外国政治内容剔除
// @namespace https://git.yuanlu.bid/
// @version 0.1
// @description 自动剔除外国网站内掺杂的固定政治内容
// @author yuanlu
// @include *://*/*
// @grant none
// @run-at document-end
// @require https://code.jquery.com/jquery-latest.js
// @license AGPL-3.0-or-later
// ==/UserScript==
(function () {
"use strict";
/** @type {import('jquery')} */
const $ = window.jQuery;
if (location.host.indexOf("svelte.dev") >= 0) {
const timer = setInterval(() => {
$(".nav-spot").attr("style", "background-image: url('/favicon.png');");
$(".ukr").remove();
}, 100);
setTimeout(() => clearInterval(timer), 1000 * 60);
} else if (location.host.indexOf("sveltematerialui.com") >= 0) {
const timer = setInterval(() => {
$("body").removeClass("ukraine");
}, 100);
setTimeout(() => clearInterval(timer), 1000 * 60);
}
})();