您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove scrollbar-color from Notion pages,ths Chatgpt.
当前为
- // ==UserScript==
- // @name Remove scrollbar-color for Notion
- // @namespace http://tampermonkey.net/
- // @version 1.0
- // @description Remove scrollbar-color from Notion pages,ths Chatgpt.
- // @author Jw
- // @match https://www.notion.so/*
- // @grant none
- // @license MIT
- // ==/UserScript==
- (function() {
- 'use strict';
- // 遍历所有的样式表
- for (let i = 0; i < document.styleSheets.length; i++) {
- const styleSheet = document.styleSheets[i];
- try {
- const rules = styleSheet.cssRules || styleSheet.rules;
- if (!rules) continue;
- // 遍历每条样式规则
- for (let j = 0; j < rules.length; j++) {
- const rule = rules[j];
- if (rule.style && rule.style.scrollbarColor) {
- rule.style.scrollbarColor = ""; // 移除 scrollbar-color
- }
- }
- } catch (e) {
- console.log('Error accessing stylesheet:', e);
- }
- }
- })();