I'm trying to write a small script for Greasemonkey, but it does not work, because I have little experience.
It is necessary to replace all properties CSS with a value (background: #fff;) on (background: #e8e8e8;).
I'm trying to write a small script for Greasemonkey, but it does not work, because I have little experience.
It is necessary to replace all properties CSS with a value (background: #fff;) on (background: #e8e8e8;).
// ==UserScript==
// @name Background color change
// @namespace https://website here
// @description Changes the background color
// @version 1
// @grant none
// ==/UserScript==
document.body.style.background = "white";
Simply add,
GM_addStyle("body { background-color: #fff !
important; }");
Important may not be needed.