Skip to content

Commit

Permalink
add amazon-apstag as scriptlet. #300 AG-27340
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit 36a8fb1
Merge: fbf6253 0b3e540
Author: Slava Leleka <v.leleka@adguard.com>
Date:   Wed Mar 13 12:22:26 2024 +0200

    Merge branch 'master' into feature/AG-27340-amazon-apstag

commit fbf6253
Author: Slava Leleka <v.leleka@adguard.com>
Date:   Wed Mar 13 11:30:10 2024 +0200

    add amazon-apstag as scriptlet
  • Loading branch information
slavaleleka committed Mar 13, 2024
1 parent 0b3e540 commit b448648
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
- `href-sanitizer` scriptlet [#327]
- `no-protected-audience` scriptlet [#395]
- multiple redirects can be used as scriptlets [#300]:
- `amazon-apstag`
- `didomi-loader`
- `fingerprintjs2`
- `fingerprintjs3`
Expand Down
3 changes: 3 additions & 0 deletions scripts/compatibility-table.json
Expand Up @@ -44,6 +44,9 @@
{
"adg": "debug-on-property-write"
},
{
"adg": "amazon-apstag"
},
{
"adg": "didomi-loader"
},
Expand Down
17 changes: 17 additions & 0 deletions src/scriptlets/amazon-apstag.js
@@ -0,0 +1,17 @@
import { AmazonApstag } from '../redirects/amazon-apstag';

/**
* @scriptlet amazon-apstag
*
* @description
* Mocks Amazon's apstag.js
*
* ### Examples
*
* ```adblock
* example.org#%#//scriptlet('amazon-apstag')
* ```
*
* @added unknown.
*/
export { AmazonApstag };
1 change: 1 addition & 0 deletions src/scriptlets/scriptlets-list.js
Expand Up @@ -70,6 +70,7 @@ export * from './json-prune-fetch-response';
export * from './no-protected-audience';
// redirects as scriptlets
// https://github.com/AdguardTeam/Scriptlets/issues/300
export * from './amazon-apstag';
export * from './didomi-loader';
export * from './fingerprintjs2';
export * from './fingerprintjs3';

0 comments on commit b448648

Please sign in to comment.