Greasy Fork is available in English.
简化 Fondom 界面,移除各个广告。原脚本为 jurassicplayer 制作的 Fandom - Remove Garbage,后来作者没有更新,我便做了这个修改版。
当前为
// ==UserScript==
// @name Fandom - Remove Garbage X
// @description 简化 Fondom 界面,移除各个广告。原脚本为 jurassicplayer 制作的 Fandom - Remove Garbage,后来作者没有更新,我便做了这个修改版。
// @namespace http://greasyfork.icu/users/809036
// @author WeiHengYi
// @version 2.0.0
// @license unlicense
// @grant GM_addStyle
// @run-at document-start
// @include http://fandom.com/*
// @include https://fandom.com/*
// @include http://*.fandom.com/*
// @include https://*.fandom.com/*
// ==/UserScript==
(function() {
let css = `
#mixed-content-footer, #WikiaRailWrapper, div[itemprop="video"], .wds-global-footer, #WikiaBarWrapper, .wds-global-navigation__content-bar-left, .top-ads-container {
display:none;
}
#WikiaMainContent {
width: 100%;
}
`;
if (typeof GM_addStyle !== "undefined") {
GM_addStyle(css);
} else {
let styleNode = document.createElement("style");
styleNode.appendChild(document.createTextNode(css));
(document.querySelector("head") || document.documentElement).appendChild(styleNode);
}
})();