mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Mention all aliases of scriptlets with the canonical name being the first
parent
0fb139ba85
commit
27d81f1099
1 changed files with 62 additions and 44 deletions
|
|
@ -14,11 +14,11 @@
|
|||
|
||||
|
||||
## Available general purpose scriptlets
|
||||
- [abort-current-inline-script](#abort-current-inline-scriptjs-) _(acis / acs)_
|
||||
- [abort-current-script](#abort-current-scriptjs-) _(acs / abort-current-inline-script / acis)_
|
||||
- [abort-on-property-read](#abort-on-property-readjs-) _(aopr)_
|
||||
- [abort-on-property-write](#abort-on-property-writejs-) _(aopw)_
|
||||
- [abort-on-stack-trace](#abort-on-stack-tracejs-) _(aost)_
|
||||
- [addEventListener-defuser](#addeventlistener-defuserjs-) _(aeld)_
|
||||
- [addEventListener-defuser](#addeventlistener-defuserjs-) _(aeld / prevent-addEventListener)_
|
||||
- [~addEventListener-logger~](#addeventlistener-loggerjs-) _(~aell~)_
|
||||
- [trusted-click-element](#trusted-click-elementjs-) [Trusted]
|
||||
- [set-constant](#set-constantjs-) _(set)_
|
||||
|
|
@ -32,13 +32,13 @@
|
|||
- [trusted-set-local-storage-item](#trusted-set-local-storage-itemjs-) / trusted-set-session-storage-item [Trusted]
|
||||
- [remove-cache-storage-item](#remove-cache-storage-itemjs-)
|
||||
- [call-nothrow](#call-nothrowjs-)
|
||||
- [no-setInterval-if](#no-setinterval-ifjs-) _(nosiif)_
|
||||
- [no-setTimeout-if](#no-settimeout-ifjs-) _(nostif)_
|
||||
- [nano-setInterval-booster](#nano-setinterval-boosterjs-) _(nano-sib)_
|
||||
- [nano-setTimeout-booster](#nano-settimeout-boosterjs-) _(nano-stb)_
|
||||
- [no-xhr-if](#no-xhr-ifjs-)
|
||||
- [no-setInterval-if](#no-setinterval-ifjs-) _(nosiif / prevent-setInterval / setInterval-defuser)_
|
||||
- [no-setTimeout-if](#no-settimeout-ifjs-) _(nostif / prevent-setTimeout / setTimeout-defuser)_
|
||||
- [adjust-setInterval](#adjust-setIntervaljs-) _(nano-setInterval-booster / nano-sib)_
|
||||
- [adjust-setTimeout](#adjust-setTimeoutjs-) _(nano-setTimeout-booster / nano-stb)_
|
||||
- [prevent-xhr](#prevent-xhrjs-) _(no-xhr-if)_
|
||||
- [trusted-prevent-xhr](#trusted-prevent-xhrjs-) [Trusted]
|
||||
- [no-fetch-if](#no-fetch-ifjs-)
|
||||
- [prevent-fetch](#prevent-fetchjs-) _(no-fetch-if)_
|
||||
- [trusted-replace-xhr-response](#trusted-replace-xhr-responsejs-) [Trusted]
|
||||
- [trusted-replace-fetch-response](#trusted-replace-fetch-responsejs-) _(trusted-rpfr)_ [Trusted]
|
||||
- [trusted-replace-argument](#trusted-replace-argumentjs-) [Trusted]
|
||||
|
|
@ -47,14 +47,14 @@
|
|||
- [remove-attr](#remove-attrjs-) _(ra)_
|
||||
- [remove-class](#remove-classjs-) _(rc)_
|
||||
- [remove-node-text](#remove-node-textjs-) _(rmnt)_
|
||||
- [trusted-replace-node-text](#trusted-replace-node-textjs-) _(trusted-rpnt)_ [Trusted]
|
||||
- [trusted-replace-node-text](#trusted-replace-node-textjs-) _(trusted-rpnt / replace-node-text / rpnt)_ [Trusted]
|
||||
- [trusted-replace-outbound-text](#trusted-replace-outbound-textjs-) _(trusted-rpot)_ [Trusted]
|
||||
- [spoof-css](#spoof-cssjs-)
|
||||
- [prevent-canvas](#prevent-canvasjs-)
|
||||
- [href-sanitizer](#href-sanitizerjs-)
|
||||
- [disable-newtab-links](#disable-newtab-linksjs-)
|
||||
- [window-close-if](#window-close-ifjs-)
|
||||
- [no-window-open-if](#no-window-open-ifjs-) _(nowoif)_
|
||||
- [close-window](#close-windowjs-) _(window-close-if)_
|
||||
- [prevent-window-open](#prevent-window-openjs-) _(nowoif / no-window-open-if / window.open-defuser)_
|
||||
- [object-prune](#object-prunejs----fn)
|
||||
- [trusted-prune-inbound-object](#trusted-prune-inbound-objectjs-) [Trusted]
|
||||
- [trusted-prune-outbound-object](#trusted-prune-outbound-objectjs-) [Trusted]
|
||||
|
|
@ -66,13 +66,13 @@
|
|||
- [m3u-prune](#m3u-prunejs-)
|
||||
- [noeval](#noevaljs-)
|
||||
- [noeval-silent](#noeval-silentjs-)
|
||||
- [noeval-if](#noeval-ifjs-)
|
||||
- [noeval-if](#noeval-ifjs-) _(prevent-eval-if)_
|
||||
- [~no-floc~](#no-flocjs-)
|
||||
- [no-requestAnimationFrame-if](#no-requestanimationframe-ifjs-) _(norafif)_
|
||||
- [no-requestAnimationFrame-if](#no-requestanimationframe-ifjs-) _(norafif / prevent-requestAnimationFrame)_
|
||||
- [nowebrtc](#nowebrtcjs-)
|
||||
- [webrtc-if](#webrtc-ifjs-)
|
||||
- [window.name-defuser](#windowname-defuser-)
|
||||
- [refresh-defuser](#refresh-defuserjs-)
|
||||
- [prevent-refresh](#prevent-refreshjs-) _(refresh-defuser)_
|
||||
- [overlay-buster](#overlay-busterjs-)
|
||||
- [alert-buster](#alert-busterjs-)
|
||||
|
||||
|
|
@ -161,10 +161,10 @@ to log _all_ calls without defusing any of them, a scriptlet without parameters
|
|||
|
||||
***
|
||||
|
||||
### abort-current-script.js [↪](https://github.com/gorhill/uBlock/blob/784ebb09050cb6617bd857f7c6a4311ac9649ce9/assets/resources/scriptlets.js#L35)
|
||||
### acs.js /
|
||||
### abort-current-script.js /
|
||||
### acis.js /
|
||||
### abort-current-inline-script.js [↪](https://github.com/gorhill/uBlock/blob/784ebb09050cb6617bd857f7c6a4311ac9649ce9/assets/resources/scriptlets.js#L35)
|
||||
### abort-current-inline-script.js /
|
||||
### acis.js
|
||||
Aborts execution of inline script (_throws_ `ReferenceError`) when attempts to access specified _property_ when text content or `src` attribute value (new in [1.37.0](https://github.com/gorhill/uBlock/commit/ebc42ae21e7900fafeaf1041038b94488b1d50e5)) of `<script>` _element_ matches specified text or _regular expression_.
|
||||
|
||||
Note that `acis.js` and `abort-current-inline-script.js` aliases are deprecated and can be removed in the future.
|
||||
|
|
@ -191,8 +191,8 @@ Also see:
|
|||
|
||||
***
|
||||
|
||||
### aopr.js /
|
||||
### abort-on-property-read.js [↪](https://github.com/gorhill/uBlock/blob/a94df7f3b27080ae2dcb3b914ace39c0c294d2f6/assets/resources/scriptlets.js#L96)
|
||||
### aopr.js
|
||||
Aborts execution of script (_throws_ `ReferenceError`) when attempts to read specified _property_. Writes are ignored.
|
||||
|
||||
Parameters:
|
||||
|
|
@ -206,8 +206,8 @@ Also see:
|
|||
|
||||
***
|
||||
|
||||
### aopw.js /
|
||||
### abort-on-property-write.js [↪](https://github.com/gorhill/uBlock/blob/a94df7f3b27080ae2dcb3b914ace39c0c294d2f6/assets/resources/scriptlets.js#L150)
|
||||
### aopw.js
|
||||
Aborts execution of script (_throws_ `ReferenceError`) when attempts to write specified _property_.
|
||||
|
||||
Parameters:
|
||||
|
|
@ -221,9 +221,8 @@ Also see:
|
|||
|
||||
***
|
||||
|
||||
|
||||
### aost.js /
|
||||
### abort-on-stack-trace.js [↪](https://github.com/gorhill/uBlock/blob/793e2c78963ba86c8d36b950807ce952f7199c1f/assets/resources/scriptlets.js#L194)
|
||||
### aost.js
|
||||
|
||||
#### _Experimental, under development_
|
||||
|
||||
|
|
@ -261,8 +260,9 @@ Also see:
|
|||
|
||||
***
|
||||
|
||||
### aeld.js /
|
||||
### addEventListener-defuser.js [↪](https://github.com/gorhill/uBlock/blob/07d3c96261656e44f674550fbde50da8f6a15acc/assets/resources/scriptlets.js#L308)
|
||||
### aeld.js /
|
||||
### prevent-addEventListener.js
|
||||
Prevents attaching event listeners.
|
||||
|
||||
Parameters (when using positional arguments):
|
||||
|
|
@ -340,8 +340,8 @@ Also see: [AdGuard `log-addEventListener`](https://github.com/AdguardTeam/Script
|
|||
|
||||
***
|
||||
|
||||
### remove-cookie.js /
|
||||
### cookie-remover.js [↪](https://github.com/gorhill/uBlock/blob/a94df7f3b27080ae2dcb3b914ace39c0c294d2f6/assets/resources/scriptlets.js#L942)
|
||||
### remove-cookie.js [↪](https://github.com/gorhill/uBlock/blob/a94df7f3b27080ae2dcb3b914ace39c0c294d2f6/assets/resources/scriptlets.js#L942)
|
||||
### cookie-remover.js
|
||||
Removes current page cookies specified by name. For current domain, wildcard (dot) subdomain(s), after [1.28.0](https://github.com/gorhill/uBlock/commit/c4d39d37632fbee4d513116641a282ed2a48c89d) also for domain one level above `www`, current and `/` path, script accessible (HttpOnly=false), on load and before unload.
|
||||
|
||||
Caveats: cookies set for higher level domain will not be removed. For example, if current page domain is `page.example.com`, cookies set for `example.com` will not be removed. One exception is `www` subdomain, which will work after [1.28.0](https://github.com/gorhill/uBlock/commit/c4d39d37632fbee4d513116641a282ed2a48c89d).
|
||||
|
|
@ -635,7 +635,8 @@ Also see:
|
|||
|
||||
***
|
||||
|
||||
### noeval.js [↪](https://github.com/gorhill/uBlock/blob/a94df7f3b27080ae2dcb3b914ace39c0c294d2f6/src/web_accessible_resources/noeval.js)
|
||||
### noeval.js [↪]
|
||||
(https://github.com/gorhill/uBlock/blob/a94df7f3b27080ae2dcb3b914ace39c0c294d2f6/src/web_accessible_resources/noeval.js)
|
||||
Prevent web pages from using _`eval()`_, and report attempts to the logger. This should not be used as a generic filter due to the fact that it breaks many websites, including those using Cloudflare's DDoS protection.
|
||||
|
||||
Examples:
|
||||
|
|
@ -654,6 +655,7 @@ Prevent web pages from using _`eval()`_.
|
|||
***
|
||||
|
||||
### noeval-if.js [↪](https://github.com/gorhill/uBlock/blob/a94df7f3b27080ae2dcb3b914ace39c0c294d2f6/assets/resources/scriptlets.js#L340)
|
||||
### prevent-eval-if.js
|
||||
Prevent web pages from using _`eval()`_ on specific matching payloads.
|
||||
|
||||
Parameters:
|
||||
|
|
@ -682,7 +684,8 @@ Solves [uBlockOrigin/uBlock-issues#1553](https://github.com/uBlockOrigin/uBlock-
|
|||
|
||||
***
|
||||
|
||||
### no-fetch-if.js [↪](https://github.com/gorhill/uBlock/blob/b6ed83bc5c840431ed03cddaed1daeb395db3b0e/assets/resources/scriptlets.js#L586)
|
||||
### prevent-fetch.js [↪](https://github.com/gorhill/uBlock/blob/b6ed83bc5c840431ed03cddaed1daeb395db3b0e/assets/resources/scriptlets.js#L586)
|
||||
### no-fetch-if.js
|
||||
|
||||
New in [1.31.3b9](https://github.com/gorhill/uBlock/commit/ba11a700139bbc648e4ae5b2bc7af90ef03db5df).
|
||||
|
||||
|
|
@ -743,6 +746,7 @@ Also see: [AdGuard `trusted-replace-xhr-response`](https://github.com/AdguardTea
|
|||
***
|
||||
|
||||
### trusted-replace-fetch-response.js [↪](https://github.com/gorhill/uBlock/blob/2282215e1cb0f9fb0974fba5d16ca5fb9c5bcc57/assets/resources/scriptlets.js#L3527)
|
||||
### trusted-rpfr.js
|
||||
|
||||
#### _Trusted scriptlet_
|
||||
|
||||
|
|
@ -815,8 +819,9 @@ Examples of usage:
|
|||
|
||||
***
|
||||
|
||||
### norafif.js /
|
||||
### no-requestAnimationFrame-if.js [↪](https://github.com/gorhill/uBlock/blob/1de0e820b87fdd3717b9f2653baaa7a934075055/assets/resources/scriptlets.js#L522)
|
||||
### norafif.js
|
||||
### prevent-requestAnimationFrame.js
|
||||
|
||||
New in [1.27.0](https://github.com/gorhill/uBlock/commit/1de0e820b87fdd3717b9f2653baaa7a934075055).
|
||||
|
||||
|
|
@ -840,8 +845,10 @@ Also see:
|
|||
|
||||
***
|
||||
|
||||
### nosiif.js /
|
||||
### no-setInterval-if.js [↪](https://github.com/gorhill/uBlock/blob/8f3d8cde7a9de45695d2706087701df59553c01b/assets/resources/scriptlets.js#L701)
|
||||
### nosiif.js /
|
||||
### prevent-setInterval.js /
|
||||
### setInterval-defuser.js
|
||||
|
||||
New in [1.23.0](https://github.com/gorhill/uBlock/commit/9367a6015b8cbb6b49347b00a105aab8f24df861)
|
||||
|
||||
|
|
@ -867,8 +874,10 @@ Also see:
|
|||
|
||||
***
|
||||
|
||||
### nostif.js /
|
||||
### no-setTimeout-if.js [↪](https://github.com/gorhill/uBlock/blob/8f3d8cde7a9de45695d2706087701df59553c01b/assets/resources/scriptlets.js#L776)
|
||||
### nostif.js /
|
||||
### prevent-setTimeout.js /
|
||||
### setTimeout-defuser.js
|
||||
|
||||
New in [1.23.0](https://github.com/gorhill/uBlock/commit/9367a6015b8cbb6b49347b00a105aab8f24df861)
|
||||
|
||||
|
|
@ -908,7 +917,8 @@ Also see:
|
|||
|
||||
***
|
||||
|
||||
### no-xhr-if.js [↪](https://github.com/gorhill/uBlock/blob/745fbd1c02b7179052ba97f51c54f7cb000636f0/assets/resources/scriptlets.js#L1171)
|
||||
### prevent-xhr.js [↪](https://github.com/gorhill/uBlock/blob/745fbd1c02b7179052ba97f51c54f7cb000636f0/assets/resources/scriptlets.js#L1171)
|
||||
### no-xhr-if.js
|
||||
|
||||
New in [1.38.0](https://github.com/gorhill/uBlock/commit/745fbd1c02b7179052ba97f51c54f7cb000636f0).
|
||||
|
||||
|
|
@ -1015,8 +1025,8 @@ Also see:
|
|||
|
||||
***
|
||||
|
||||
### ~ra.js~ /
|
||||
### ~remove-attr.js [↪](https://github.com/gorhill/uBlock/blob/0f330c7359567587df6c35e9108b75c339533a56/assets/resources/scriptlets.js#L658)~
|
||||
### ~ra.js~
|
||||
|
||||
Deprecated by [`:remove-attr()`](./Static-filter-syntax#subjectremove-attrarg-subjectremove-classarg)
|
||||
|
||||
|
|
@ -1043,8 +1053,8 @@ Also see:
|
|||
|
||||
***
|
||||
|
||||
### ~rc.js~ /
|
||||
### ~remove-class.js~ [↪](https://github.com/gorhill/uBlock/blob/3160bc8ccdab2b7dbc906ea213b29a4c04120be1/assets/resources/scriptlets.js#L757)
|
||||
### ~rc.js~
|
||||
|
||||
Deprecated by [`:remove-class()`](./Static-filter-syntax#subjectremove-attrarg-subjectremove-classarg)
|
||||
|
||||
|
|
@ -1069,8 +1079,10 @@ Also see:
|
|||
|
||||
***
|
||||
|
||||
### trusted-rpnt.js /
|
||||
### trusted-replace-node-text.js [↪](https://github.com/gorhill/uBlock/blob/f3b720d532c7a42a6ad5167e3b6f860004b4c2b6/assets/resources/scriptlets.js#L2570)
|
||||
### trusted-rpnt.js /
|
||||
### replace-node-text.js /
|
||||
### rpnt.js
|
||||
<span name="rpntjs-"></span>
|
||||
<span name="replace-node-textjs-"></span>
|
||||
|
||||
|
|
@ -1117,8 +1129,8 @@ Also see:
|
|||
|
||||
***
|
||||
|
||||
### rmnt.js /
|
||||
### remove-node-text.js [↪](https://github.com/gorhill/uBlock/blob/f3b720d532c7a42a6ad5167e3b6f860004b4c2b6/assets/resources/scriptlets.js#L2531)
|
||||
### rmnt.js
|
||||
|
||||
New in [1.49.3rc15](https://github.com/gorhill/uBlock/commit/2bb446797a12086f2eebc0c8635b671b8b90c477)
|
||||
|
||||
|
|
@ -1157,8 +1169,8 @@ Also see:
|
|||
|
||||
***
|
||||
|
||||
### trusted-rpot.js /
|
||||
### trusted-replace-outbound-text.js [↪](https://github.com/gorhill/uBlock/blob/21e1ee30ee36c1b9a7a3c9f43ac97e52d8e79661/assets/resources/scriptlets.js#L4708)
|
||||
### trusted-rpot.js
|
||||
|
||||
#### _Trusted scriptlet_
|
||||
|
||||
|
|
@ -1238,7 +1250,8 @@ Also see:
|
|||
|
||||
***
|
||||
|
||||
### refresh-defuser.js [↪](https://github.com/gorhill/uBlock/blob/c0a43b0d32e38aa3858644db20fc69a7b0c85e82/assets/resources/scriptlets.js#L726)
|
||||
### prevent-refresh.js [↪](https://github.com/gorhill/uBlock/blob/c0a43b0d32e38aa3858644db20fc69a7b0c85e82/assets/resources/scriptlets.js#L726)
|
||||
### refresh-defuser.js
|
||||
|
||||
New in [1.38.7b3](https://github.com/gorhill/uBlock/commit/c0a43b0d32e38aa3858644db20fc69a7b0c85e82)
|
||||
|
||||
|
|
@ -1287,8 +1300,8 @@ Also see:
|
|||
|
||||
***
|
||||
|
||||
### set.js /
|
||||
### set-constant.js [↪](https://github.com/gorhill/uBlock/blob/a9e6f9c72c920d68a6e5b01b844ad39e6f2e02b0/assets/resources/scriptlets.js#L878)
|
||||
### set.js
|
||||
Creates _property_ and initializes it with a value from a predefined set.
|
||||
|
||||
Scriptlet will succeed only when:
|
||||
|
|
@ -1363,8 +1376,8 @@ Also see:
|
|||
|
||||
***
|
||||
|
||||
### trusted-set.js /
|
||||
### trusted-set-constant.js [↪](https://github.com/gorhill/uBlock/blob/f3b720d532c7a42a6ad5167e3b6f860004b4c2b6/assets/resources/scriptlets.js#L2605)
|
||||
### trusted-set.js
|
||||
|
||||
#### _Trusted scriptlet_
|
||||
|
||||
|
|
@ -1675,8 +1688,9 @@ Reference: https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage
|
|||
|
||||
***
|
||||
|
||||
### nano-sib.js /
|
||||
### nano-setInterval-booster.js [↪](https://github.com/gorhill/uBlock/blob/001f5a650084ffa4842f9361bc975ca724bd69ba/assets/resources/scriptlets.js#L463)
|
||||
### adjust-setInterval.js [↪](https://github.com/gorhill/uBlock/blob/001f5a650084ffa4842f9361bc975ca724bd69ba/assets/resources/scriptlets.js#L463)
|
||||
### nano-setInterval-booster.js /
|
||||
### nano-sib.js
|
||||
Adjusts interval for specified _`setInterval()`_ callbacks.
|
||||
|
||||
Parameters:
|
||||
|
|
@ -1748,8 +1762,9 @@ References: https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/g
|
|||
|
||||
***
|
||||
|
||||
### nano-stb.js /
|
||||
### nano-setTimeout-booster.js [↪](https://github.com/gorhill/uBlock/blob/001f5a650084ffa4842f9361bc975ca724bd69ba/assets/resources/scriptlets.js#L513)
|
||||
### adjust-setTimeout.js [↪](https://github.com/gorhill/uBlock/blob/001f5a650084ffa4842f9361bc975ca724bd69ba/assets/resources/scriptlets.js#L513)
|
||||
### nano-setTimeout-booster.js /
|
||||
### nano-stb.js
|
||||
Adjusts delay for specified _`setTimeout()`_ callbacks.
|
||||
|
||||
Parameters:
|
||||
|
|
@ -1785,7 +1800,8 @@ Parameters:
|
|||
|
||||
***
|
||||
|
||||
### window-close-if.js [↪](https://github.com/gorhill/uBlock/blob/8d7469afcfae7dabefe819eb513a0ba026ed9dd7/assets/resources/scriptlets.js#L1273)
|
||||
### close-window.js [↪](https://github.com/gorhill/uBlock/blob/8d7469afcfae7dabefe819eb513a0ba026ed9dd7/assets/resources/scriptlets.js#L1273)
|
||||
### window-close-if.js
|
||||
|
||||
New in [1.39.3b10](https://github.com/gorhill/uBlock/commit/c198b9a748265c0e1ce7f5bad4528d5bf6ce8161).
|
||||
|
||||
|
|
@ -1811,8 +1827,10 @@ Also see:
|
|||
|
||||
***
|
||||
|
||||
### prevent-window-open.js [↪](https://github.com/gorhill/uBlock/blob/4649ae4d78fa7d46e80d71d39d377d1b65309020/assets/resources/scriptlets.js#L1879)
|
||||
### nowoif.js /
|
||||
### no-window-open-if.js [↪](https://github.com/gorhill/uBlock/blob/4649ae4d78fa7d46e80d71d39d377d1b65309020/assets/resources/scriptlets.js#L1879)
|
||||
### no-window-open-if.js /
|
||||
### window.open-defuser.js
|
||||
Prevent opening new windows by [_`window.open()`_](https://developer.mozilla.org/en-US/docs/Web/API/Window/open) when URL positively or negatively matches to specific string.
|
||||
|
||||
Improvements:
|
||||
|
|
|
|||
Loading…
Reference in a new issue