Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AdamWr opened this issue Apr 2, 2024 · 1 comment
Open

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

AdamWr opened this issue Apr 2, 2024 · 1 comment
Assignees
Labels

Comments

@AdamWr
Copy link
Member

AdamWr commented Apr 2, 2024

Similar to - #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 AdamWr changed the title Add trsuted-prevent-xhr scriptlet Add trusted-prevent-xhr scriptlet Apr 2, 2024
@adguard-bot adguard-bot changed the title Add trusted-prevent-xhr scriptlet Add a new scriptlet — 'trusted-prevent-xhr' Apr 3, 2024
@piquark6046
Copy link
Member

CC: @gorhill

@slavaleleka slavaleleka added the Feature request Adding new feature label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants