Scriptlets icon indicating copy to clipboard operation
Scriptlets copied to clipboard

Improve translation into uBo file for `remove-class` / `remove-attr`

Open krystian3w opened this issue 3 years ago • 0 comments

As I said in #152 nice will be implement translation AG syntax to uBo syntax with injection parameter when AG based on default MutationObserver.

So uBo added parameter but default run scriptlet once and sometimes run before class or attribute exist.

  • So remove-class should have visible asap stay:

    is.fi#%#//scriptlet('remove-class', 'stuck', '.placeholder > .sticky-container.stuck')

    ➡️

    is.fi##+js(remove-class, stuck, .placeholder > .sticky-container.stuck, asap stay)

  • And remove-attr should have visible stay:

    musixmatch.com#%#//scriptlet('remove-attr', 'style|oncontextmenu', 'body')

    ➡️

    musixmatch.com##+js(remove-attr, style|oncontextmenu, body, stay)

    At musixmatch.com we can see needed stay or completed due attribs was added very late on page - without parameter with uBo selection on page will be still locked.

krystian3w avatar Aug 27 '22 02:08 krystian3w