Open Alex-302 opened 1 month ago
The trusted-add-class would provide an opportunity to add any class name to an element. For example, sometimes it happens that a script checks the body class list.
trusted-add-class
example.com#%#//scriptlet('trusted-add-class', selector, classNames[, applying])
where
classNames can be a single class or multiple classes separated by commas, e.g. foo or foo,bar
classNames
foo
foo,bar
applying can be asap, complete and stay like in remove-attr
applying
asap
complete
stay
Can be used on:
https://github.com/AdguardTeam/Scriptlets/issues/431
The
trusted-add-class
would provide an opportunity to add any class name to an element. For example, sometimes it happens that a script checks the body class list.where
classNames
can be a single class or multiple classes separated by commas, e.g.foo
orfoo,bar
applying
can beasap
,complete
andstay
like in remove-attrCan be used on: