Skip to content

Commit

Permalink
handle v1.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka committed May 15, 2023
1 parent a5cd94e commit 6f8d1db
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/redirects/didomi-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {

/**
* @redirect didomi-loader
*
* @description
* Mocks Didomi's CMP loader script.
* https://developers.didomi.io/
Expand All @@ -17,6 +18,8 @@ import {
* ```
* ||sdk.privacy-center.org/fbf86806f86e/loader.js$script,redirect=didomi-loader
* ```
*
* @added v1.6.2.
*/
export function DidomiLoader(source) {
function UserConsentStatusForVendorSubscribe() { }
Expand Down
3 changes: 3 additions & 0 deletions src/redirects/fingerprintjs3.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {

/**
* @redirect fingerprintjs3
*
* @description
* Mocks FingerprintJS v3
* https://github.com/fingerprintjs
Expand All @@ -17,6 +18,8 @@ import {
* ```
* ||sephora.com/js/ufe/isomorphic/thirdparty/fp.min.js$script,redirect=fingerprintjs3
* ```
*
* @added v1.6.2.
*/
export function Fingerprintjs3(source) {
const visitorId = (() => {
Expand Down
3 changes: 3 additions & 0 deletions src/redirects/google-ima3.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ import {

/**
* @redirect google-ima3
*
* @description
* Mocks the IMA SDK of Google.
*
* **Example**
* ```
* ||imasdk.googleapis.com/js/sdkloader/ima3.js$script,redirect=google-ima3
* ```
*
* @added v1.6.2.
*/

export function GoogleIma3(source) {
Expand Down
3 changes: 3 additions & 0 deletions src/redirects/naver-wcslog.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ import { hit, noopFunc } from '../helpers/index';

/**
* @redirect naver-wcslog
*
* @description
* Mocks wcslog.js of Naver Analytics.
*
* **Example**
* ```
* ||wcs.naver.net/wcslog.js$script,redirect=naver-wcslog
* ```
*
* @added v1.6.2.
*/

export function NaverWcslog(source) {
Expand Down
3 changes: 3 additions & 0 deletions src/redirects/prebid-ads.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { hit } from '../helpers/index';

/**
* @redirect prebid-ads
*
* @description
* Sets predefined constants on a page:
* - `canRunAds`: `true`
Expand All @@ -12,6 +13,8 @@ import { hit } from '../helpers/index';
* ```
* ||playerdrive.me/assets/js/prebid-ads.js$script,redirect=prebid-ads
* ```
*
* @added v1.6.2.
*/
export function prebidAds(source) {
window.canRunAds = true;
Expand Down
3 changes: 3 additions & 0 deletions src/redirects/prebid.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {

/**
* @redirect prebid
*
* @description
* Mocks the prebid.js header bidding suit.
* https://docs.prebid.org/
Expand All @@ -16,6 +17,8 @@ import {
* ```
* ||tmgrup.com.tr/bd/hb/prebid.js$script,redirect=prebid
* ```
*
* @added v1.6.2.
*/

export function Prebid(source) {
Expand Down
3 changes: 3 additions & 0 deletions src/scriptlets/prevent-element-src-loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
/* eslint-disable max-len, consistent-return */
/**
* @scriptlet prevent-element-src-loading
*
* @description
* Prevents target element source loading without triggering 'onerror' listeners and not breaking 'onload' ones.
*
Expand All @@ -27,6 +28,8 @@ import {
* ```
* example.org#%#//scriptlet('prevent-element-src-loading', 'script' ,'adsbygoogle')
* ```
*
* @added v1.6.2.
*/
/* eslint-enable max-len */
export function preventElementSrcLoading(source, tagName, match) {
Expand Down
3 changes: 3 additions & 0 deletions src/scriptlets/prevent-refresh.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
/* eslint-disable max-len */
/**
* @scriptlet prevent-refresh
*
* @description
* Prevents reloading of a document through a meta "refresh" tag.
*
Expand All @@ -32,6 +33,8 @@ import {
* ```
* cryptodirectories.com#%#//scriptlet('prevent-refresh', 3)
* ```
*
* @added v1.6.2.
*/
/* eslint-enable max-len */
export function preventRefresh(source, delaySec) {
Expand Down

0 comments on commit 6f8d1db

Please sign in to comment.