RodneyMKay / Clean Fandom Wiki

// ==UserScript==
// @name         Clean Fandom Wiki
// @namespace    https://groen.digital/
// @version      1.4
// @description  Removes all useless elements from fandom pages!
// @author       RodneyMKay
// @license      MIT
// @copyright    2023, RodneyMKay (https://openuserjs.org/users/RodneyMKay)
//
// @grant GM_addStyle
// @run-at document-start
// @match http://fandom.com/*
// @match https://fandom.com/*
// @match http://*.fandom.com/*
// @match 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;
        }

        .search-modal, .search-modal:before {
            left: 0 !important;
        }

        #WikiaBarWrapper {
            display: none !important;
        }

        .global-footer__content {
            display: none !important;
        }

        .side-bt-container>div {
            min-width: 0 !important;
        }

        .notifications-placeholder {
            display: none !important;
        }

        .highlight__actions > *:not(:nth-child(1)),
        .highlight__actions > *:nth-child(1)::after {
            display: none !important;
        }
    `;

    GM_addStyle(css);
})();