Adam
Adam
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...
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...
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...
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...
Related to this issue - https://github.com/AdguardTeam/AdguardFilters/issues/172374 Video player is broken if `https://mssl.fwmrm.net/libs/adm/6.55.0/AdManager.js` is blocked. It seems that something like this: Code: ```js (() => { const eventsMap = new Map();...
Currently it's too easy to disable `trusted-replace-xhr-response` and `prevent-xhr` by adding `.shouldBePrevented = false;` Steps to reproduce: 1. Add this rule: ```adblock example.org#%#//scriptlet('trusted-replace-xhr-response', '*', 'TEST', '/') ``` 2. Go to...
Sometimes to block some (usually video) ads a rule with `$removeparam` modifier is used, for example here - https://github.com/AdguardTeam/AdguardFilters/issues/153758 (`roosterteeth.com`) The problem is that these kind of rules are not...
In `prevent-xhr` scriptlet `statusText` always returns `OK` value: https://github.com/AdguardTeam/Scriptlets/blob/091247665fb9e83d68fb16d63c5246fff70fb7c3/src/scriptlets/prevent-xhr.js#L148 but it looks like that this value depends on web browser and version of HTTP. According to - https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/statusText >Note: Responses...
Add redirect resource for - `https://static.adsafeprotected.com/iasPET.1.js` It probably could be useful for broken video on `reuters.com` - https://github.com/AdguardTeam/AdguardFilters/issues/152828#issuecomment-1576151504 This can be useful - https://searchfox.org/mozilla-central/source/browser/extensions/webcompat/shims/iaspet.js
If website overrides `Function.prototype.toString` then `prevent-addEventListener` might not works. Related to - https://github.com/AdguardTeam/AdguardFilters/issues/143847 Steps to reproduce: 1. Add this rule: ```adblock example.org#%#//scriptlet('prevent-addEventListener', '', 'alert') ``` 2. Go to - https://example.org/...