Wowhead Expand Site

Expands wowhead Site to take full width

< 脚本 Wowhead Expand Site 的反馈

评价:一般 - 脚本能用,但还有一些问题

§
发布于:2025-08-09
编辑于:2025-08-09

this script broke a few days ago, here's a version that works for me now:

// ==UserScript==
// @name         Wowhead
// @namespace    http://tampermonkey.net/
// @version      0.9
// @description  Expands wowhead Site to take full width
// @author       Twitter: @AcademicoMDP
// @match        *://*.wowhead.com/*
// @grant        GM_addStyle
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';

    // Based on your debugging, '.layout-wrapper' and/or '.layout' is the
    // true container that is constraining the page width.
    // This script targets those specifically.
    const theFinalFixCss = `
        /* Target the true page containers */
        .layout-wrapper,
        .layout {
            max-width: none !important;
        }

        /* Hide the sidebars which are no longer necessary */
        .sidebar-wrapper {
            display: none !important;
        }
    `;

    GM_addStyle(theFinalFixCss);

    console.log('The REAL Final Fix has been applied!');

})();

发布留言

登录以发布留言。