Skip to content

Commit

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

commit 70be56a
Merge: 14d9d3f 6709b30
Author: Slava Leleka <v.leleka@adguard.com>
Date:   Tue Mar 12 18:15:10 2024 +0200

    Merge branch 'master' into feature/AG-27340-didomi-loader

commit 14d9d3f
Author: Slava Leleka <v.leleka@adguard.com>
Date:   Tue Mar 12 16:20:40 2024 +0200

    fix changelog

commit a628157
Author: Slava Leleka <v.leleka@adguard.com>
Date:   Tue Mar 12 16:18:19 2024 +0200

    add didomi-loader as scriptlet
  • Loading branch information
slavaleleka committed Mar 12, 2024
1 parent 6709b30 commit 76b86ac
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
- `json-prune-fetch-response` scriptlet [#361]
- `href-sanitizer` scriptlet [#327]
- `no-protected-audience` scriptlet [#395]
- multiple redirects can be used as scriptlets [#300]:
- `didomi-loader`

### Changed

Expand All @@ -33,6 +35,8 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
[#377]: https://github.com/AdguardTeam/Scriptlets/issues/377
[#361]: https://github.com/AdguardTeam/Scriptlets/issues/361
[#327]: https://github.com/AdguardTeam/Scriptlets/issues/327
[#300]: https://github.com/AdguardTeam/Scriptlets/issues/300


## [v1.10.1] - 2024-02-12

Expand Down
6 changes: 6 additions & 0 deletions scripts/compatibility-table.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
{
"adg": "debug-on-property-write"
},
{
"adg": "didomi-loader"
},
{
"adg": "dir-string"
},
Expand Down Expand Up @@ -361,6 +364,9 @@
"adg": "click2load.html",
"ubo": "click2load.html"
},
{
"adg": "didomi-loader"
},
{
"adg": "fingerprintjs2",
"ubo": "fingerprint2.js"
Expand Down
18 changes: 18 additions & 0 deletions src/scriptlets/didomi-loader.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { DidomiLoader } from '../redirects/didomi-loader';

/**
* @scriptlet didomi-loader
*
* @description
* Mocks Didomi's CMP loader script.
* https://developers.didomi.io/
*
* ### Examples
*
* ```adblock
* example.org#%#//scriptlet('didomi-loader')
* ```
*
* @added unknown.
*/
export { DidomiLoader };
3 changes: 3 additions & 0 deletions src/scriptlets/scriptlets-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ export * from './trusted-create-element';
export * from './href-sanitizer';
export * from './json-prune-fetch-response';
export * from './no-protected-audience';
// redirects as scriptlets
// https://github.com/AdguardTeam/Scriptlets/issues/300
export * from './didomi-loader';

0 comments on commit 76b86ac

Please sign in to comment.