User:Charger1221/global.js

// ==UserScript== // @name Fandom - Remove Garbage // @description Makes fandom wiki pages great again (removes top video, sidebar, bottom bar, bottom feeds, fandom navigation, and extends main content to fill container). // @namespace https://greasyfork.org/users/317698 // @author jurassicplayer // @version 1.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 { 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); } });