Skip to content

Commit

Permalink
move trusteds under Scriptlets
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Oct 26, 2022
1 parent 2adca6a commit a60a9c7
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@

AdGuard's Scriptlets and Redirect resources library which provides extended capabilities for content blocking.

* [Scriptlets](#scriptlets)
* [Syntax](#scriptlet-syntax)
* [Available scriptlets](https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-scriptlets.md#scriptlets)
* [Scriptlets compatibility table](https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/compatibility-table.md#scriptlets)
* [Trusted scriptlets](#trusted-scriptlets)
* [Application restriction](#trusted-scriptlets-application)
* [Redirect resources](#redirect-resources)
* [Syntax](#redirect-syntax)
* [Available redirect resources](https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-redirects.md#redirect-resources)
* [Redirect resources compatibility table](https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/compatibility-table.md#redirects)
* [How to build](#how-to-build)
* [How to test](#how-to-test)
* [How to update wiki](#how-to-update-wiki)
* [Browser compatibility](#browser-compatibility)
* [Projects using Scriptlets](#used-by)
- [AdGuard Scriptlets and Redirect resources](#adguard-scriptlets-and-redirect-resources)
- [Scriptlets](#scriptlets)
- [<a id="scriptlet-syntax"></a> Syntax](#-syntax)
- [<a id="trusted-scriptlets"></a> Trusted scriptlets](#-trusted-scriptlets)
- [<a id="trusted-scriptlets-application"></a> Application restriction](#-application-restriction)
- [Redirect resources](#redirect-resources)
- [<a id="redirect-syntax"></a> Syntax](#-syntax-1)
- [<a id="how-to-build"></a> How to build](#-how-to-build)
- [Build for Extension](#build-for-extension)
- [Build output](#build-output)
- [Scriptlets library](#scriptlets-library)
- [<a id="redirects_api-methods"></a> Imported `redirects` has such methods:](#-imported-redirects-has-such-methods)
- [Corelibs library](#corelibs-library)
- [Redirects library](#redirects-library)
- [<a id="how-to-test"></a> How to test](#-how-to-test)
- [Debugging](#debugging)
- [<a id="how-to-update-wiki"></a> How to update wiki](#-how-to-update-wiki)
- [<a id="browser-compatibility"> Browser Compatibility](#a-idbrowser-compatibility-browser-compatibility)
- [<a id="used-by"> Projects using Scriptlets](#a-idused-by-projects-using-scriptlets)

* * *
## Scriptlets
Expand Down Expand Up @@ -57,21 +61,19 @@ This rule applies the `abort-on-property-read` scriptlet on all pages of `exampl
* **[Scriptlets compatibility table](https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/compatibility-table.md#scriptlets)**


## <a id="trusted-scriptlets"></a> Trusted scriptlets
### <a id="trusted-scriptlets"></a> Trusted scriptlets

Trusted scriptlets are scriptlets with extended functionality. Their names are prefixed with `trusted-`, i.e `trusted-click-element`, to be easily distinguished from common scriptlets.
Trusted scriptlets are scriptlets with extended functionality. Their names are prefixed with `trusted-`, e.g `trusted-click-element`, to be easily distinguished from common scriptlets.

### <a id="trusted-scriptlets-application"></a> Application restriction
#### <a id="trusted-scriptlets-application"></a> Application restriction

Trusted scriptlets application must be restricted due to dangerous nature of their capabilities.
Allowed sources of trusted scriptlets are:
* AdGuard filters,
* pre-installed filters list,
* custom filters which were installed with `trusted` option checked,
* user rules.




## Redirect resources

AdGuard is able to redirect web requests to a local "resource".
Expand Down

0 comments on commit a60a9c7

Please sign in to comment.