我正在尝试为 Greasemonkey 编写一个小脚本,但它不起作用,因为我没有什么经验。
有必要用一个值(背景:#fff;)替换(背景:#e8e8e8;)上的所有属性CSS。
最佳答案
// ==UserScript==
// @name Background color change
// @namespace https://website here
// @description Changes the background color
// @version 1
// @grant none
// ==/UserScript==
document.body.style.background = "white";
关于javascript - 如何使用 Greasemonkey 更改 CSS 样式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45980147/