Fandom - Cut the Crap

Zero distractions, pure wiki.

当前为 2025-10-01 提交的版本,查看 最新版本

// ==UserScript==
// @name         Fandom - Cut the Crap
// @version      2.1
// @description  Zero distractions, pure wiki.
// @author       samerop
// @license      MIT
// @match        https://*.fandom.com/*
// @run-at       document-start
// @namespace    https://gf.qytechs.cn/users/1426714
// ==/UserScript==

(function() {
    'use strict';

    const selectorsToHide = [
      ".page__right-rail",
      "#global-explore-navigation",
      ".notifications-placeholder"
    ];

    const hideCss = selectorsToHide.join(',\n') + ' { display: none !important; }';

    const styleFixesCss = `
        .fandom-community-header__background {
            width: 100% !important;
        }

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

        body {
            margin-left: 0 !important;
        }

        .fandom-community-header__background.fitCenter {
          background-size: cover !important;
        }
    `;

    const style = document.createElement('style');
    style.textContent = hideCss + '\n' + styleFixesCss;
    document.documentElement.appendChild(style);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址