BT之家宽屏显示

BT之家网页宽屏显示

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

/* jshint esversion: 6 */
// ==UserScript==
// @name         BT之家宽屏显示
// @namespace    http://tampermonkey.net/
// @version      0.0.2
// @description  BT之家网页宽屏显示
// @author       greyh4t
// @license      MIT
// @match        *://*.btbtt11.com/*
// @match        *://*.btbtt12.com/*
// @match        *://*.btbtt13.com/*
// @match        *://*.btbtt14.com/*
// @match        *://*.btbtt15.com/*
// @match        *://*.btbtt16.com/*
// @match        *://*.btbtt17.com/*
// @match        *://*.btbtt18.com/*
// @match        *://*.btbtt19.com/*
// @match        *://*.btbtt20.com/*
// @run-at       document-start
// @grant        GM_addStyle

// ==/UserScript==
(function () {
    'use strict';

    // 宽屏
    GM_addStyle(".width {max-width:90% !important; width:90% !important;}");

    // 删除左右两侧无法点击的遮罩
    document.onreadystatechange = function () {
        if (document.readyState === "interactive") {
            document.querySelectorAll(".wrapper_bg_c.hidden-xs").forEach(el => el.remove());
        }
    }
})()