Skip to content
\n

TestHideCss.js Code:

\n
// ==UserScript==\n// @name         TestHideCss\n// @description  Test CSS\n// @version      0.0.1\n// @author       getoutnow\n// @match        *://*/*\n// @grant        GM_addStyle\n// ==/UserScript==\n\n(function () {\n  const myStyleCss = `body.readable { display:none !important; }`;\n  document.body.className += 'readable';\n  GM_addStyle(myStyleCss);\n})();\n
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

https://github.com/quoid/userscripts#api

\n

Use GM.addStyle(css) instead of GM_addStyle.

","upvoteCount":1,"url":"https://github.com/quoid/userscripts/discussions/718#discussioncomment-10651451"}}}
Discussion options

You must be logged in to vote

https://github.com/quoid/userscripts#api

Use GM.addStyle(css) instead of GM_addStyle.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ACTCD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #717 on September 15, 2024 11:16.