Greasy Fork

Shined up real nice.

StyleSwitcher

try to take over the world!

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://greasyfork.org/scripts/31497-styleswitcher/code/StyleSwitcher.js?version=208078

Advertisement
Author
Cologler
Ratings
1 0 0
Version
0.2.2
Created
Updated
License
N/A
Applies to
All sites

Author's Description

switch css style.

require:

// @grant              GM_info
// @grant              GM_getValue
// @grant              GM_setValue
// @grant              GM_addStyle
// @grant              GM_unregisterMenuCommand
// @grant              GM_registerMenuCommand
// @require            https://greasyfork.org/scripts/31497-styleswitcher/code/StyleSwitcher.js

how to use:

let sw = new StyleSwitcher();
sw.addStyle('hide all',
`
* { display: none }
`);
sw.load();

now you can switch css on menu command.