RodneyMKay / Clean fandom wiki

// ==UserScript==
// @name         Clean fandom wiki
// @namespace    https://groen.digital/
// @version      1.0
// @description  Removes all useless elements from fandom pages!
// @author       RodneyMKay
// @license      MIT
// @copyright    2021, RodneyMKay (https://openuserjs.org/users/RodneyMKay)
//
// @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() {
    const css = `
        .global-navigation {
            display: none !important;
        }

        .main-container {
            margin: 0 !important;
            width: 100% !important;
        }

        .fandom-community-header__background {
            width: 100% !important;
        }

        .page__right-rail {
            display: none !important;
        }

        .fandom-sticky-header {
            left: 0 !important;
        }

        #mixed-content-footer {
            display: none !important;
        }
    `;

    GM_addStyle(css);
})();