您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
使得windows中浏览器的滚动条更加美观
// ==UserScript== // @name 滚动条美化-仿macos // @namespace https://bbs.tampermonkey.net.cn/ // @version 1.0.1 // @description 使得windows中浏览器的滚动条更加美观 // @author XboxYan、冰冻大西瓜 // @match *://*/* // @license AGPL-3.0-or-later // @grant GM_addStyle // ==/UserScript== /* global GM_addStyle */ GM_addStyle(` body{ margin: 0; scrollbar-gutter: auto; background-color: transparent; } ::-webkit-scrollbar{ background-color: transparent; width: 12px; } ::-webkit-scrollbar-thumb{ background-color: transparent; border-radius: 8px; background-clip: content-box; border: 2px solid transparent; } body[scroll]::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb:hover{ background-color: rgba(0,0,0,.5); }`) window.addEventListener('scroll', ev => { document.body.toggleAttribute('scroll', true) window.timer && clearTimeout(window.timer) window.timer = setTimeout(() => { document.body.toggleAttribute('scroll') }, 800) })
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址