Scriptlets icon indicating copy to clipboard operation
Scriptlets copied to clipboard

AdGuard scriptlets library

Results 159 Scriptlets issues
Sort by recently updated
recently updated
newest added

In jQuery, `height()` and `width()` methods use `Element.prototype.getBoundingClientRect` to calculate size of an element. However, AdGuard's `spoof-css` scriptlet does not mock completely the property. Screenshot ![image](https://github.com/user-attachments/assets/3269bf44-71ab-49cd-a196-8785cfab8623)

Priority: P4

https://github.com/AdguardTeam/AdguardFilters/issues/191416. So, the problem, as the title says. It does not matter whether I use MV2, MV3 extensions or even the app. Adding the `delay` does not help. STR: 1....

bug
Priority: P4

It's similar issue like - https://github.com/AdguardTeam/AdguardBrowserExtension/issues/2980 On websites which use a `Trusted Types`, `trusted-replace-node-text` doesn't work. Steps to reproduce: 1. Add this rule: ```adblock youtube.com#%#//scriptlet('trusted-replace-node-text', 'script', 'if (window.ytcsi) {ytcsi', 'if...

enhancement
Resolution: Fixed
Status: Resolved
Priority: P4
Version: Scriptlets v1.12

To prevent constructor such as `new Promise` or `new MutationObserver` that can be used to circumvent existing scriptlets like `prevent-addEventListener`.

Feature request
Priority: P4
Version: Scriptlets v2.2

Filters like ``` exploader.net#%#//scriptlet('trusted-replace-node-text', 'script', 'ダウンロード', '/(window\.[0-9A-z]+[\S\s]+ele\.outerHTML;\})/', '$1;document.addEventListener("DOMContentLoaded", (async function(){const t="undefined"!=typeof dl_link?Object.values(dl_link):null,e=document.querySelector(\'a.dl_button[href*="?"]\');if(!t||!e)return;const n=e.getAttribute("href");let l=null;t.forEach((async t=>{const e=n.replace(/\?.*/,`?${t}`);await(async t=>{const e=await fetch(t);return!(await e.text()).includes("広告ブロック")})(e)&&(l=t,document.querySelectorAll(\'a.dl_button[href*="?"]\').forEach((t=>{let e=t.getAttribute("href");e=e.replace(/\?.*/,`?${l}`),t.setAttribute("href",e)})))}))}))') ``` outputs literal `\'` and not `'` so can't...

bug
Priority: P4

So that I can select texts NOT including certain strings. Needed for `https://github.com/AdguardTeam/AdguardFilters/issues/183252`

enhancement
Priority: P4

OS: MacOS Sonoma 14.5 Browser: Safari 17.6 AdGuard: 2.16.0.1808 nightly / CL 1.16.25 / Scriptlets 1.11.16 Example of the site with the problem: https://tweakers.net/ Screenshot ![image](https://github.com/user-attachments/assets/d96e6306-270b-4066-8be8-6b54392c66f8) UPD: The rules, which...

bug
Priority: P4

`wiki.yjsnpi.nu` removes images if they detect blocker on any subpages having images (ex. `https://wiki.yjsnpi.nu/wiki/%E3%81%9B%E3%81%84%E3%82%84`), and if I understand correctly, they check not only iframes created by `i-mobile.co.jp` script but also...

enhancement
Priority: P4

So, here's the user rules: ```adb example.com#%#//scriptlet('trusted-set-attr', 'body', 'test-attr1', 'test-val1') example.com#%#//scriptlet('set-attr', 'body', 'test-attr2', 'test-val2') ``` Result: ![image](https://github.com/user-attachments/assets/eacdb30e-cbbb-40a4-9a9c-3f7121588d97) Plus, `trusted-set-attr` doesn't seem to support using the attribute name as a means...

bug
Priority: P4
Version: Scriptlets v1.12

Someone websites hide the actual urls behind base64 encoded string. Currently 'href-sanitizer' can't handle this correctly. It would be best if there's a base64 option for 'href-sanitizer' scriptlet Related issue...

enhancement
Resolution: Fixed
Status: Resolved
Priority: P4
Version: Scriptlets v1.12