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

It could be useful in this case - https://github.com/AdguardTeam/AdguardFilters/issues/166126 Instead of allowing cookie notice and closing it, we could use `dispatchEvent()` to load video player. Something like: ```js function dispatchCustomEvent(event,...

Resolution: Fixed
Status: In Review
Priority: P2
Version: Scriptlets v1.11

The same as - https://github.com/AdguardTeam/Scriptlets/issues/417, but for `fetch`.

Feature request
Priority: P4

Similar to - https://github.com/AdguardTeam/Scriptlets/issues/350, but instead of using redirection resources which are limited, we could have a trusted scriptlet which will allow to set any content in `response`/`responseText`, and maybe...

Feature request
Priority: P4

### Introduction Since Netflix uses `Object.defineProperty` to define functions related to advertisement [^1], it seems that new scriptlet setting inbound and outbound of `Object.defineProperty` and `Object.defineProperties` is required for the...

Priority: P4

Related to https://github.com/AdguardTeam/AdguardFilters/issues/175034 and https://github.com/AdguardTeam/AdguardFilters/issues/174876 These websites use `onreadystatechange` to check if 4 `events` were fired and `#%#//scriptlet('prevent-xhr', 'pagead2.googlesyndication.com')` doesn't work because currently only 2 `events` are invoked. Steps to...

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

Basically the same issue as here - https://github.com/AdguardTeam/Scriptlets/issues/199#issuecomment-1063271758, but for `response` (currently only `responseText` is modified). Steps to reproduce: 1. Add this rule: ``` example.org#%#//scriptlet('prevent-xhr', 'pagead2.googlesyndication.com') ``` 2. Go to...

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

This is required for tsurlfilter modifications, see https://github.com/AdguardTeam/tsurlfilter/blob/d992758fa44ff567a9d493424887a23ea641d085/packages/tsurlfilter/src/modifiers/redirect-modifier.ts#L60

enhancement
Resolution: Fixed
Status: Resolved
Priority: P4

uBlock Origin supports `example.org#@#+js()` to defuse all scriptlets in example.org. AdGuard should support `example.org#@%#//scriptlet()` or `example.org#@%#//scriptlet('')` to do the same thing and convert the first one into that. Furthermore, AdGuard...

Resolution: Fixed
Status: Resolved
Version: Scriptlets v1.10
Priority: P4
Version: AdGuard v4.4
Version: tsurlfilter v2.3
Release: v1.10.25

For example, to replace this rule with a scriptlet: ``` audioteka.com,jastrzabpost.pl,deliciousmagazine.pl,finansowysupermarket.pl,genialne.pl,pysznosci.pl,nocowanie.pl#%#AG_onLoad(function(){if(!(-1

Priority: P4
Version: Scriptlets v1.11

In some scriptlets which replace content (like `xml-prune`, `m3u-prune`, `trusted-replace-fetch-response`, `trusted-replace-node-text`, `trusted-replace-xhr-response`, maybe in others too) it would be useful if there would be additional option to log content before...

Priority: P4
Version: Scriptlets v1.11