您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
01/07/2025 15:56:32
// ==UserScript== // @name Restore scrollbar // @namespace Violentmonkey Scripts // @match https://france.muji.eu/* // @match https://www.commencal.com/* // @grant GM_addStyle // @version 1.0 // @author kirinyaga // @description 01/07/2025 15:56:32 // @license MIT // ==/UserScript== (function() { 'use strict'; // Add CSS to restore scrollbars GM_addStyle(` html { overflow-y: scroll !important; } body { overflow-y: auto !important; } ::-webkit-scrollbar { -webkit-appearance: none; width: 12px !important; } ::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,.2) !important; border-radius: 10px !important; } ::-webkit-scrollbar-track { background: rgba(0,0,0,.05) !important; border-radius: 10px !important; } `); // Remove any elements that might be blocking scroll const elements = document.querySelectorAll('*'); elements.forEach(el => { el.style.overflow = ''; el.style.overflowX = ''; el.style.overflowY = ''; }); })();