您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Enable vertical and horizontal page BODY scrolling (for example, where it is disabled if a modal is open).
当前为
- // ==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; }');