As far as I know the new GM API v4.0 does not require any more the
"GM.addStyle(...)" function to apply new CSS styles.
So instead of writing old style:
GM.addStyle("#foobarid { font-size: 16px !important;");
I can now simply write
#foobarid { font-size: 16px !important; }
Correct so far?
Now there is a "bridge" script which let me run old style GM scripts unchanged
with new GM:
// @require https://greasemonkey.github.io/gm4-polyfill/gm4-polyfill.js
However if I prefer to convert old style GM script files completely to new
style I have to strip/remove all "GM.addStyle(..)" tags from all scripts
manually.
This can be tedious since I have approx 40-50 scripts withs lots of
"GM.addStyle(..)" statements.
So is there a tool which let me strip/remove these tags from script files
automatically once and forever?
Ben
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.