Skip to content

Commit

Permalink
add few metrika-yandex scriptlets. #300 AG-27340
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit dee0888
Merge: 8262edb f9c29a6
Author: Slava Leleka <v.leleka@adguard.com>
Date:   Wed Mar 13 21:12:32 2024 +0200

    merge master into the branch, resolve conflicts

commit 8262edb
Author: Slava Leleka <v.leleka@adguard.com>
Date:   Wed Mar 13 21:08:23 2024 +0200

    add few metrika-yandex scriptlets
  • Loading branch information
slavaleleka committed Mar 13, 2024
1 parent f9c29a6 commit 121b30c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
- `google-ima3`
- `googlesyndication-adsbygoogle`
- `googletagservices-gpt`
- `metrika-yandex-tag`
- `metrika-yandex-watch`

### Changed

Expand Down
18 changes: 18 additions & 0 deletions src/scriptlets/metrika-yandex-tag.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { metrikaYandexTag } from '../redirects/metrika-yandex-tag';

/**
* @scriptlet metrika-yandex-tag
*
* @description
* Mocks Yandex Metrika API.
* https://yandex.ru/support/metrica/objects/method-reference.html
*
* ### Examples
*
* ```adblock
* example.org#%#//scriptlet('metrika-yandex-tag')
* ```
*
* @added unknown.
*/
export { metrikaYandexTag };
18 changes: 18 additions & 0 deletions src/scriptlets/metrika-yandex-watch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { metrikaYandexWatch } from '../redirects/metrika-yandex-watch';

/**
* @scriptlet metrika-yandex-watch
*
* @description
* Mocks the old Yandex Metrika API.
* https://yandex.ru/support/metrica/objects/_method-reference.html
*
* ### Examples
*
* ```adblock
* example.org#%#//scriptlet('metrika-yandex-watch')
* ```
*
* @added unknown.
*/
export { metrikaYandexWatch };
2 changes: 2 additions & 0 deletions src/scriptlets/scriptlets-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,5 @@ export * from './google-analytics-ga';
export * from './google-ima3';
export * from './googlesyndication-adsbygoogle';
export * from './googletagservices-gpt';
export * from './metrika-yandex-tag';
export * from './metrika-yandex-watch';

0 comments on commit 121b30c

Please sign in to comment.