Enable Vertical and Horizontal Scrollbar Everywhere

Enable vertical and horizontal page BODY scrolling (for example, where it is disabled if a modal is open).

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name Enable Vertical and Horizontal Scrollbar Everywhere
// @namespace RW5hYmxlIFZlcnRpY2FsIGFuZCBIb3Jpem9udGFsIFNjcm9sbGJhciBFdmVyeXdoZXJl
// @description Enable vertical and horizontal page BODY scrolling (for example, where it is disabled if a modal is open).
// @author smed79
// @version 1.2
// @encoding utf-8
// @license https://creativecommons.org/licenses/by-nc-sa/4.0/
// @icon https://i.ibb.co/9NBrg0r/icon.png
// @match http://*/*
// @match https://*/*
// @exclude http://*.youtube.com/watch?*
// @exclude https://*.youtube.com/watch?*
// @grant GM_addStyle
// ==/UserScript==

function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) {
        return;
    }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

addGlobalStyle('html { overflow: auto !important; }');
addGlobalStyle('body { overflow: auto !important; }');