Moved to: https://github.com/gorhill/uBlock/wiki/Resources-Library
-
-
Save gwarser/d1aabf7b013a7f3ae80dfcf6fb843abf to your computer and use it in GitHub Desktop.
Mention them under redirectable scriptlets?, anyways, thanks for doing this.
For tomorrow - how is this working?
9anime.*##script:inject(set-constant.js, Math.random, trueFunc)
9anime.*##script:inject(set-constant.js, Object.defineProperty, noopFunc)
Doesn't do anything on my end so if I disable it with 9anime.*#@#script:inject(set-constant.js, Math.random, trueFunc)
makes no difference.
9anime.*##script:inject(set-constant.js, Object.defineProperty, noopFunc)
for some reason started causing the tabunder script on 9anime to react, so I had to disable it.
There is no defined order for filters and set-constant.js
relies on Object.defineProperty
so second filter may defuse first one. There is 8 filters like this in uBlock filters.
Deprecated -> Obsolete ?
Heh, looks like "constant" in set-constant.js means you can set property to predefined (constant) value. It does not make property immutable.
Hmmm, some scriptlets were designed to be injected by redirect filter... "site-specific-specific"?