Scriptlets
Scriptlets copied to clipboard
AdGuard scriptlets library
As they were added in uBO: https://github.com/gorhill/uBlock/pull/3925
Steps to reproduce: 1. Add this rule: ```adblock example.org#%#//scriptlet('prevent-fetch', 'googlesyndication', '', 'opaque') ``` 2, Go to - https://example.org/ 3. In browser console run: ```js (async () => { try {...
Recently I have noticed that some websites uses `click()` to open popups. For example: ```js (() => { const url = '/popup'; const createElm = document.createElement("a"); createElm.href = url; createElm.target...
It would be nice to have this scriptlet to prevent websites from fingerprinting users, especially on mobile devices where it's nearly impossible for users to install userscripts. uBO [added this...
**URL=** `https://exego.app/GdvGUG`, `https://evernia.site/GdvGUG` there are popups on page, if i use following rules ``` exego.app,evernia.site#%#//scriptlet('abort-current-inline-script', 'navigator', 'FingerprintJS') exego.app,evernia.site#%#//scriptlet('log-addEventListener') evernia.site#%#//scriptlet('prevent-fetch', 'adsbygoogle') ``` `exego.app,evernia.site#%#//scriptlet('log-addEventListener')` do not log addEventListener call (wrt following script)...
https://github.com/uBlockOrigin/uBlock-issues/issues/3828
IDK if this is only me, but adding `youtube.com#%#//scriptlet('trusted-replace-fetch-response', '"adSlots"', '"no_ads"', '/\W/')` causes Youtube video never plays when they send `adSlots`. The same for `youtube.com#%#//scriptlet('trusted-replace-fetch-response', '"adSlots"', '"no_ads"', '/.*/')`: Screenshot ...
Mozilla added Trusted Type API support for Firefox Nightly by default. https://bugzilla.mozilla.org/show_bug.cgi?id=1955251 https://www.firefox.com/en-US/firefox/145.0a1/releasenotes/ Currently, this affects the following issues: - https://github.com/AdguardTeam/Scriptlets/issues/507 - https://github.com/AdguardTeam/Scriptlets/issues/457
https://github.com/gorhill/uBlock/commit/a483f7955fc8c9c820684c3f55c9f982a7abb2d3 I think that in an AdGuard filter, we can write it like ```adblock example.com>>#%#//scriptlet('set-constant', 'iAmEmbeddedInExampleDotCom', 'true') ```
AdGuard Browser Extension MV2 5.2.112.84 on Firefox cannot set a cookie value containing `.`. Exmaple: https://github.com/AdguardTeam/AdguardFilters/issues/217266 ```adblock beautywelt.de#%#//scriptlet('trusted-set-cookie', 'gh7', '6.3.', '/', 'beautywelt.de') ```