Scriptlets icon indicating copy to clipboard operation
Scriptlets copied to clipboard

Add a new scriptlet — 'trusted-prevent-xhr'

Open AdamWr opened this issue 10 months ago • 1 comments

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 allow to set other values as well. Also generating random content (like in prevent-xhr) would be useful, I think. Something like (just an example):

example.org#%#//scriptlet('trusted-prevent-xhr', 'pagead2.googlesyndication.com', 'length:100-300, responseContent: ins.adsbygoogle-ablated-ad-slot')

in the case if website will check length of response and if it contains specific text.

AdamWr avatar Apr 02 '24 16:04 AdamWr

CC: @gorhill

piquark6046 avatar Apr 04 '24 11:04 piquark6046