AdguardTeam / CoreLibs

Core Adguard libraries
https://adguard.com/
Apache License 2.0
39 stars 7 forks source link

Add support for "trusted" scriptlets #1612

Open ameshkov opened 2 years ago

ameshkov commented 2 years ago

Trusted scriptlet are the ones that are only allowed in filter lists marked as "trusted": https://github.com/AdguardTeam/Scriptlets/issues/106

The difference is that their name is strarted with a trusted- prefix.

For instance:

example.org#%#scriptlet('trusted-click-element', '#banner #close');
ameshkov commented 1 year ago

Currently, we allow all scriptlets in trusted lists only. As a part of this task consider allowing scriptlets (but not trusted ones) in all lists.