-
Notifications
You must be signed in to change notification settings - Fork 27
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 possibility to allowlist scriptlets #377
Comments
superlex
changed the title
Add #@%#//scriptlet() as conversion of #@#+js()
Add Nov 1, 2023
#@%#//scriptlet()
as conversion of #@#+js()
adguard-bot
added
Resolution: Fixed
Status: In Review
and removed
Status: In Progress
labels
Feb 15, 2024
maximtop
changed the title
Add
Add possibility to allowlist scriptlets
Feb 15, 2024
#@%#//scriptlet()
as conversion of #@#+js()
This was referenced Apr 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
uBlock Origin supports
example.org#@#+js()
to defuse all scriptlets in example.org.
AdGuard should support
example.org#@%#//scriptlet()
orexample.org#@%#//scriptlet('')
to do the same thing and convert the first one into that.
Furthermore, AdGuard could also add the ability to defuse a specific scriptlet.
For example, if you have
then
example.org#@%#//scriptlet('set-cookie')
should defuse only the last two, while
example.org#@%#//scriptlet()
orexample.org#@%#//scriptlet('')
should defuse all of them.
NB:
uBlock Origin also supports
#@#+js()
(without domain) to suppress all scriptlet in all sites. AdGuard could do the same, if you find it useful.
For example,
#@%#//scriptlet('set-cookie')
(without domain) could defuse all set-cookie scriptlets everywhere.
References:
https://github.com/gorhill/uBlock/wiki/Static-filter-syntax#scriptlet-injection
The text was updated successfully, but these errors were encountered: