@duckduckgo/autoconsent 17.3.0 → 17.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -0
- package/dist/addon-firefox/background.bundle.js +26 -7
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +22 -1
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/popup.bundle.js +19 -7
- package/dist/addon-firefox/rule-index.json +1 -1
- package/dist/addon-firefox/rules.json +1 -1
- package/dist/addon-mv3/background.bundle.js +26 -7
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/content.bundle.js +22 -1
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/popup.bundle.js +19 -7
- package/dist/addon-mv3/rule-index.json +1 -1
- package/dist/addon-mv3/rules.json +1 -1
- package/dist/autoconsent.cjs.js +22 -1
- package/dist/autoconsent.esm.js +22 -1
- package/dist/autoconsent.playwright.js +22 -1
- package/dist/autoconsent.standalone.js +23 -2
- package/dist/types/cmps/trustarc-top.d.ts +1 -0
- package/dist/types/eval-snippets.d.ts +1 -0
- package/lib/cmps/admiral.ts +10 -0
- package/lib/cmps/trustarc-top.ts +10 -1
- package/lib/eval-snippets.ts +7 -0
- package/package.json +1 -1
- package/rules/autoconsent/adblockplus.json +94 -0
- package/rules/autoconsent/alertamodal-cookies.json +29 -0
- package/rules/autoconsent/altamar-cookieconsent.json +45 -0
- package/rules/autoconsent/autohero.json +49 -0
- package/rules/autoconsent/bing.com-notice-cosmetic.json +28 -0
- package/rules/autoconsent/bing.com-notice.json +13 -0
- package/rules/autoconsent/bsgdprcookies.json +16 -0
- package/rules/autoconsent/casasrurales.json +15 -0
- package/rules/autoconsent/ccoo.json +40 -0
- package/rules/autoconsent/cdu-edu-au.json +29 -0
- package/rules/autoconsent/cnmc-gob-es.json +14 -0
- package/rules/autoconsent/comparandonos.json +66 -0
- package/rules/autoconsent/consent-backdrop.json +34 -0
- package/rules/autoconsent/cookie-accordion-settings.json +56 -0
- package/rules/autoconsent/cookies-tip-v1.json +9 -0
- package/rules/autoconsent/cookiesplus.json +20 -0
- package/rules/autoconsent/crtm.json +36 -0
- package/rules/autoconsent/edebe.json +22 -0
- package/rules/autoconsent/eduardolosilla.json +12 -0
- package/rules/autoconsent/educastur-alojaweb.json +13 -0
- package/rules/autoconsent/flatsome-cookies.json +25 -0
- package/rules/autoconsent/gameforge.json +42 -0
- package/rules/autoconsent/gamefound-com.json +12 -0
- package/rules/autoconsent/generalitat-catalunya.json +15 -0
- package/rules/autoconsent/ihavecookies.json +5 -1
- package/rules/autoconsent/imarina.json +25 -0
- package/rules/autoconsent/jobtoday.json +18 -0
- package/rules/autoconsent/kaggle.json +21 -0
- package/rules/autoconsent/mblock.json +28 -0
- package/rules/autoconsent/mirasvit-gdpr.json +18 -7
- package/rules/autoconsent/mites.gob.es.json +18 -0
- package/rules/autoconsent/react-cookie-consent-cosmetic.json +40 -0
- package/rules/autoconsent/supercontable.json +19 -0
- package/rules/autoconsent/tusclasesparticulares.com.json +14 -0
- package/rules/autoconsent/udg.edu.json +47 -0
- package/rules/autoconsent/uned-barbastro.json +58 -0
- package/rules/autoconsent/uregina.json +35 -0
- package/rules/autoconsent/vrg-bottom-cookies.json +52 -0
- package/rules/autoconsent/wiki.gg.json +1 -1
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/adblockplus.spec.ts +7 -0
- package/tests/admiral.spec.ts +5 -4
- package/tests/alertamodal-cookies.spec.ts +8 -0
- package/tests/altamar-cookieconsent.spec.ts +6 -0
- package/tests/autohero.spec.ts +3 -0
- package/tests/bing.com-notice-cosmetic.spec.ts +5 -0
- package/tests/bing.com-notice.spec.ts +6 -0
- package/tests/bsgdprcookies.spec.ts +6 -0
- package/tests/casasrurales.spec.ts +3 -0
- package/tests/ccoo.spec.ts +5 -0
- package/tests/cdu-edu-au.spec.ts +3 -0
- package/tests/cnmc-gob-es.spec.ts +3 -0
- package/tests/comparandonos.spec.ts +3 -0
- package/tests/consent-backdrop.spec.ts +9 -0
- package/tests/cookie-accordion-settings.spec.ts +5 -0
- package/tests/cookies-tip-v1.spec.ts +3 -0
- package/tests/cookiesplus.spec.ts +6 -0
- package/tests/crtm.spec.ts +3 -0
- package/tests/edebe.spec.ts +3 -0
- package/tests/eduardolosilla.spec.ts +3 -0
- package/tests/educastur-alojaweb.spec.ts +6 -0
- package/tests/flatsome-cookies.spec.ts +3 -0
- package/tests/gameforge.spec.ts +8 -0
- package/tests/gamefound-com.spec.ts +3 -0
- package/tests/generalitat-catalunya.spec.ts +3 -0
- package/tests/ihavecookies.spec.ts +7 -1
- package/tests/imarina.spec.ts +8 -0
- package/tests/jobtoday.spec.ts +5 -0
- package/tests/kaggle.spec.ts +3 -0
- package/tests/mblock.spec.ts +3 -0
- package/tests/mirasvit-gdpr.spec.ts +5 -0
- package/tests/mites.gob.es.spec.ts +3 -0
- package/tests/react-cookie-consent-cosmetic.spec.ts +9 -0
- package/tests/supercontable.spec.ts +3 -0
- package/tests/trustarc.spec.ts +7 -0
- package/tests/tusclasesparticulares.com.spec.ts +3 -0
- package/tests/udg.edu.spec.ts +3 -0
- package/tests/uned-barbastro.spec.ts +3 -0
- package/tests/uregina.spec.ts +3 -0
- package/tests/vrg-bottom-cookies.spec.ts +3 -0
- package/rules/generated/auto_CA_promessedefleurs.com_noy.json +0 -40
- package/rules/generated/auto_FR_ludum.fr_gl5.json +0 -40
- package/rules/generated/auto_FR_meillandrichardier.com_c2f.json +0 -40
- package/tests/generated/auto_CA_promessedefleurs.com_noy.spec.ts +0 -6
- package/tests/generated/auto_FR_ludum.fr_gl5.spec.ts +0 -2
- package/tests/generated/auto_FR_meillandrichardier.com_c2f.spec.ts +0 -6
|
@@ -7,6 +7,7 @@ export default class TrustArcTop extends AutoConsentCMPBase {
|
|
|
7
7
|
runContext: RunContext;
|
|
8
8
|
_shortcutButton: HTMLElement | null;
|
|
9
9
|
_optInDone: boolean;
|
|
10
|
+
_optOutDone: boolean;
|
|
10
11
|
constructor(autoconsentInstance: AutoConsent);
|
|
11
12
|
get hasSelfTest(): boolean;
|
|
12
13
|
get isIntermediate(): boolean;
|
|
@@ -25,6 +25,7 @@ export declare const snippets: {
|
|
|
25
25
|
EVAL_ADULTFRIENDFINDER_TEST: () => boolean;
|
|
26
26
|
EVAL_AYLO_COOKIE_MANAGER_READY: () => boolean;
|
|
27
27
|
EVAL_BAHN_TEST: () => boolean;
|
|
28
|
+
EVAL_BING_NOTICE_CLOSE: () => boolean;
|
|
28
29
|
EVAL_BIGCOMMERCE_CONSENT_MANAGER_DETECT: () => boolean;
|
|
29
30
|
EVAL_BORLABS_0: () => boolean;
|
|
30
31
|
EVAL_CC_BANNER2_0: () => boolean;
|
package/lib/cmps/admiral.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import AutoConsentCMPBase from './base';
|
|
2
|
+
import { waitFor } from '../utils';
|
|
2
3
|
|
|
3
4
|
export default class Admiral extends AutoConsentCMPBase {
|
|
4
5
|
name = 'Admiral';
|
|
@@ -62,6 +63,15 @@ export default class Admiral extends AutoConsentCMPBase {
|
|
|
62
63
|
"xpath///button[contains(., 'Afvis alle') or contains(., 'Reject all') or contains(., 'Odbaci sve') or contains(., 'Rechazar todo') or contains(., 'Atmesti visus') or contains(., 'Odmítnout vše') or contains(., 'Απόρριψη όλων') or contains(., 'Rejeitar tudo') or contains(., 'Tümünü reddet') or contains(., 'Отклонить все') or contains(., 'Noraidīt visu') or contains(., 'Avvisa alla') or contains(., 'Odrzuć wszystkie') or contains(., 'Alles afwijzen') or contains(., 'Отхвърляне на всички') or contains(., 'Rifiuta tutto') or contains(., 'Zavrni vse') or contains(., 'Az összes elutasítása') or contains(., 'Respingeți tot') or contains(., 'Alles ablehnen') or contains(., 'Tout rejeter') or contains(., 'Odmietnuť všetko') or contains(., 'Lükka kõik tagasi') or contains(., 'Hylkää kaikki')]";
|
|
63
64
|
|
|
64
65
|
if (await this.waitForElement(rejectAllSelector, 500)) {
|
|
66
|
+
const rejectButton = this.elementSelector(rejectAllSelector)[0] as HTMLButtonElement;
|
|
67
|
+
if (rejectButton.disabled) {
|
|
68
|
+
// some configurations keep the buttons disabled until the card text is scrolled to the bottom
|
|
69
|
+
const cardBody = rejectButton.closest('div[class*=CardHeader]')?.parentElement?.querySelector('div[class*=CardBody]');
|
|
70
|
+
if (cardBody) {
|
|
71
|
+
cardBody.scrollTop = cardBody.scrollHeight;
|
|
72
|
+
}
|
|
73
|
+
await waitFor(() => !rejectButton.disabled, 10, 200);
|
|
74
|
+
}
|
|
65
75
|
return await this.click(rejectAllSelector);
|
|
66
76
|
}
|
|
67
77
|
|
package/lib/cmps/trustarc-top.ts
CHANGED
|
@@ -9,6 +9,7 @@ const shortcutOptIn = '#truste-consent-button';
|
|
|
9
9
|
const popupContent = '#truste-consent-content';
|
|
10
10
|
const bannerOverlay = '#trustarc-banner-overlay';
|
|
11
11
|
const bannerContainer = '#truste-consent-track';
|
|
12
|
+
const prefCenterDeclineAll = ['.truste_popframe.trustarc_newcm_container', 'button[data-button-key="decline_all"]'];
|
|
12
13
|
|
|
13
14
|
export default class TrustArcTop extends AutoConsentCMPBase {
|
|
14
15
|
name = 'TrustArc-top';
|
|
@@ -20,11 +21,13 @@ export default class TrustArcTop extends AutoConsentCMPBase {
|
|
|
20
21
|
|
|
21
22
|
_shortcutButton: HTMLElement | null;
|
|
22
23
|
_optInDone: boolean;
|
|
24
|
+
_optOutDone: boolean;
|
|
23
25
|
|
|
24
26
|
constructor(autoconsentInstance: AutoConsent) {
|
|
25
27
|
super(autoconsentInstance);
|
|
26
28
|
this._shortcutButton = null; // indicates if the "reject all" button is detected
|
|
27
29
|
this._optInDone = false;
|
|
30
|
+
this._optOutDone = false;
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
get hasSelfTest(): boolean {
|
|
@@ -32,7 +35,7 @@ export default class TrustArcTop extends AutoConsentCMPBase {
|
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
get isIntermediate(): boolean {
|
|
35
|
-
if (this._optInDone) {
|
|
38
|
+
if (this._optInDone || this._optOutDone) {
|
|
36
39
|
return false;
|
|
37
40
|
}
|
|
38
41
|
return !this._shortcutButton;
|
|
@@ -66,6 +69,12 @@ export default class TrustArcTop extends AutoConsentCMPBase {
|
|
|
66
69
|
hideElements(getStyleElement(), `.truste_popframe, .truste_overlay, .truste_box_overlay, ${bannerContainer}`);
|
|
67
70
|
await this.click(cookieSettingsButton);
|
|
68
71
|
|
|
72
|
+
// newer versions render the preference center in a shadow root on the main page instead of an iframe
|
|
73
|
+
if (await this.waitForElement(prefCenterDeclineAll, 3000)) {
|
|
74
|
+
this._optOutDone = true;
|
|
75
|
+
await this.click(prefCenterDeclineAll);
|
|
76
|
+
}
|
|
77
|
+
|
|
69
78
|
// schedule cleanup
|
|
70
79
|
setTimeout(() => {
|
|
71
80
|
getStyleElement().remove();
|
package/lib/eval-snippets.ts
CHANGED
|
@@ -97,6 +97,13 @@ export const snippets = {
|
|
|
97
97
|
EVAL_ADULTFRIENDFINDER_TEST: () => !!localStorage.getItem('cookieConsent'),
|
|
98
98
|
EVAL_AYLO_COOKIE_MANAGER_READY: () => !!(window.wl_cookie_consent_manager || window._Cookie_Consent_Manager_brand),
|
|
99
99
|
EVAL_BAHN_TEST: () => utag.gdpr.getSelectedCategories().length === 1,
|
|
100
|
+
// the close handler listens for mouseup, which element.click() does not dispatch
|
|
101
|
+
EVAL_BING_NOTICE_CLOSE: () => {
|
|
102
|
+
const close = document.querySelector('#bnp_ttc_close');
|
|
103
|
+
close.dispatchEvent(new MouseEvent('mouseup', { bubbles: true, cancelable: true, view: window }));
|
|
104
|
+
close.click();
|
|
105
|
+
return true;
|
|
106
|
+
},
|
|
100
107
|
EVAL_BIGCOMMERCE_CONSENT_MANAGER_DETECT: () => !!(window.consentManager && window.consentManager.version),
|
|
101
108
|
EVAL_BORLABS_0: () =>
|
|
102
109
|
!JSON.parse(
|
package/package.json
CHANGED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "adblockplus",
|
|
3
|
+
"vendorUrl": "https://adblockplus.org/",
|
|
4
|
+
"cosmetic": false,
|
|
5
|
+
"runContext": {
|
|
6
|
+
"main": true,
|
|
7
|
+
"frame": false,
|
|
8
|
+
"urlPattern": "^https?://(\\w+\\.)?adblockplus\\.org/"
|
|
9
|
+
},
|
|
10
|
+
"prehideSelectors": ["#cookiebar", "form.cookieprompt"],
|
|
11
|
+
"detectCmp": [
|
|
12
|
+
{
|
|
13
|
+
"exists": "#cookiebar .cookies-settings, form.cookieprompt .cookies-settings"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"detectPopup": [
|
|
17
|
+
{
|
|
18
|
+
"visible": "#cookiebar .cookies-settings, form.cookieprompt .cookies-settings",
|
|
19
|
+
"check": "any"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"optIn": [
|
|
23
|
+
{
|
|
24
|
+
"if": {
|
|
25
|
+
"visible": "form.cookieprompt .cookies-submit"
|
|
26
|
+
},
|
|
27
|
+
"then": [
|
|
28
|
+
{
|
|
29
|
+
"waitForThenClick": "form.cookieprompt .cookies-submit"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"else": [
|
|
33
|
+
{
|
|
34
|
+
"waitForThenClick": "#cookiebar .cookies-submit"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"optOut": [
|
|
40
|
+
{
|
|
41
|
+
"if": {
|
|
42
|
+
"visible": "form.cookieprompt .cookies-settings"
|
|
43
|
+
},
|
|
44
|
+
"then": [
|
|
45
|
+
{
|
|
46
|
+
"comment": "mobile layout opens a full-page settings form",
|
|
47
|
+
"waitForThenClick": "form.cookieprompt .cookies-settings"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"waitForVisible": "form.cookiepage .cookies-save"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"if": {
|
|
54
|
+
"exists": "form.cookiepage input.tracking-cookies:checked"
|
|
55
|
+
},
|
|
56
|
+
"then": [
|
|
57
|
+
{
|
|
58
|
+
"click": "form.cookiepage input.tracking-cookies"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"click": "form.cookiepage .cookies-save"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"else": [
|
|
67
|
+
{
|
|
68
|
+
"waitForThenClick": "#cookiebar .cookies-settings"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"waitForVisible": "#cookiebar .cookies-save"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"if": {
|
|
75
|
+
"exists": "#cookiebar input.tracking-cookies:checked"
|
|
76
|
+
},
|
|
77
|
+
"then": [
|
|
78
|
+
{
|
|
79
|
+
"click": "#cookiebar input.tracking-cookies"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"click": "#cookiebar .cookies-save"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"test": [
|
|
90
|
+
{
|
|
91
|
+
"cookieContains": "eyeo-ga-opt-out=true"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "alertamodal-cookies",
|
|
3
|
+
"prehideSelectors": [".alertaModal .msg.cookies"],
|
|
4
|
+
"detectCmp": [
|
|
5
|
+
{
|
|
6
|
+
"exists": ".alertaModal .msg.cookies #rechazaCookies"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"detectPopup": [
|
|
10
|
+
{
|
|
11
|
+
"visible": ".alertaModal .msg.cookies #rechazaCookies"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"optIn": [
|
|
15
|
+
{
|
|
16
|
+
"waitForThenClick": ".alertaModal .msg.cookies #aceptaCookies"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optOut": [
|
|
20
|
+
{
|
|
21
|
+
"waitForThenClick": ".alertaModal .msg.cookies #rechazaCookies"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"test": [
|
|
25
|
+
{
|
|
26
|
+
"cookieContains": "aceptaCookies=false"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "altamar-cookieconsent",
|
|
3
|
+
"prehideSelectors": [],
|
|
4
|
+
"detectCmp": [
|
|
5
|
+
{
|
|
6
|
+
"exists": "#cookieConsent #cookiesButtomCustomize"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"detectPopup": [
|
|
10
|
+
{
|
|
11
|
+
"visible": "#cookieConsent #cookiesButtomCustomize"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"optIn": [
|
|
15
|
+
{
|
|
16
|
+
"waitForThenClick": "#cookieConsent #cookiesButtomAccept"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optOut": [
|
|
20
|
+
{
|
|
21
|
+
"waitForThenClick": "#cookieConsent #cookiesButtomCustomize"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"waitForVisible": "#cookieCustomizeWrap"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"if": {
|
|
28
|
+
"exists": "#cookieAnalyticsChk:checked"
|
|
29
|
+
},
|
|
30
|
+
"then": [
|
|
31
|
+
{
|
|
32
|
+
"click": "#cookieAnalyticsChk"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"waitForThenClick": "#cookieConsent #cookiesButtomAccept[data-mode='custom']"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"test": [
|
|
41
|
+
{
|
|
42
|
+
"cookieContains": "Analytics=no"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "autohero",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https?://(www\\.)?autohero\\.com/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": [],
|
|
7
|
+
"detectCmp": [
|
|
8
|
+
{
|
|
9
|
+
"exists": "button[data-qa-selector=\"cookie-consent-configure\"]"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"detectPopup": [
|
|
13
|
+
{
|
|
14
|
+
"visible": "button[data-qa-selector=\"cookie-consent-configure\"]"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"optIn": [
|
|
18
|
+
{
|
|
19
|
+
"waitForThenClick": "button[data-qa-selector=\"cookie-consent-accept-all\"]"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"optOut": [
|
|
23
|
+
{
|
|
24
|
+
"waitForThenClick": "button[data-qa-selector=\"cookie-consent-configure\"]"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"waitForVisible": "label[data-qa-selector=\"input-box\"][data-qa-selector-value=\"MARKETING\"]"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"if": {
|
|
31
|
+
"exists": "label[data-qa-selector=\"input-box\"][data-qa-value=\"true\"]:not(.input-box__disabled) input"
|
|
32
|
+
},
|
|
33
|
+
"then": [
|
|
34
|
+
{
|
|
35
|
+
"click": "label[data-qa-selector=\"input-box\"][data-qa-value=\"true\"]:not(.input-box__disabled) input",
|
|
36
|
+
"all": true
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"waitForThenClick": "button[data-qa-selector=\"cookie-consent-configure\"]"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"test": [
|
|
45
|
+
{
|
|
46
|
+
"cookieContains": "consent=0"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bing.com-notice-cosmetic",
|
|
3
|
+
"vendorUrl": "https://www.bing.com/",
|
|
4
|
+
"cosmetic": true,
|
|
5
|
+
"runContext": {
|
|
6
|
+
"urlPattern": "^https?://(\\w+\\.)?bing\\.com/"
|
|
7
|
+
},
|
|
8
|
+
"minimumRuleStepVersion": 2,
|
|
9
|
+
"prehideSelectors": ["#thp_notf_div:has(a.hpn_top_link[href*=\"linkid=521839\"], a.hpn_top_link[href*=\"bGlua2lkPTUyMTgzOQ\"])"],
|
|
10
|
+
"detectCmp": [{ "exists": "#thp_notf_div:has(a.hpn_top_link[href*=\"linkid=521839\"], a.hpn_top_link[href*=\"bGlua2lkPTUyMTgzOQ\"])" }],
|
|
11
|
+
"detectPopup": [
|
|
12
|
+
{ "visible": "#thp_notf_div:has(a.hpn_top_link[href*=\"linkid=521839\"], a.hpn_top_link[href*=\"bGlua2lkPTUyMTgzOQ\"])" }
|
|
13
|
+
],
|
|
14
|
+
"optIn": [
|
|
15
|
+
{ "hide": "#thp_notf_div:has(a.hpn_top_link[href*=\"linkid=521839\"], a.hpn_top_link[href*=\"bGlua2lkPTUyMTgzOQ\"])" },
|
|
16
|
+
{ "addStyle": "top: 0 !important", "selector": "header#hdr", "optional": true }
|
|
17
|
+
],
|
|
18
|
+
"optOut": [
|
|
19
|
+
{ "hide": "#thp_notf_div:has(a.hpn_top_link[href*=\"linkid=521839\"], a.hpn_top_link[href*=\"bGlua2lkPTUyMTgzOQ\"])" },
|
|
20
|
+
{ "addStyle": "top: 0 !important", "selector": "header#hdr", "optional": true }
|
|
21
|
+
],
|
|
22
|
+
"test": [
|
|
23
|
+
{
|
|
24
|
+
"visible": "#thp_notf_div:has(a.hpn_top_link[href*=\"linkid=521839\"], a.hpn_top_link[href*=\"bGlua2lkPTUyMTgzOQ\"])",
|
|
25
|
+
"check": "none"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bing.com-notice",
|
|
3
|
+
"vendorUrl": "https://www.bing.com/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(\\w+\\.)?bing\\.com/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": ["#b_notificationContainer.bnp_ttc"],
|
|
8
|
+
"detectCmp": [{ "exists": "#b_notificationContainer.bnp_ttc #bnp_ttc_close" }],
|
|
9
|
+
"detectPopup": [{ "visible": "#b_notificationContainer.bnp_ttc" }],
|
|
10
|
+
"optIn": [{ "waitForVisible": "#bnp_ttc_close" }, { "eval": "EVAL_BING_NOTICE_CLOSE" }],
|
|
11
|
+
"optOut": [{ "waitForVisible": "#bnp_ttc_close" }, { "eval": "EVAL_BING_NOTICE_CLOSE" }],
|
|
12
|
+
"test": [{ "visible": "#b_notificationContainer.bnp_ttc", "check": "none" }]
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bsgdprcookies",
|
|
3
|
+
"vendorUrl": "https://github.com/Aleksander98/bsgdprcookies",
|
|
4
|
+
"prehideSelectors": ["#bs-gdpr-cookies-modal"],
|
|
5
|
+
"detectCmp": [{ "exists": "#bs-gdpr-cookies-modal #bs-gdpr-cookies-modal-advanced-btn" }],
|
|
6
|
+
"detectPopup": [{ "visible": "#bs-gdpr-cookies-modal #bs-gdpr-cookies-modal-accept-btn" }],
|
|
7
|
+
"optIn": [{ "waitForThenClick": "#bs-gdpr-cookies-modal #bs-gdpr-cookies-modal-accept-btn" }],
|
|
8
|
+
"optOut": [
|
|
9
|
+
{ "waitForThenClick": "#bs-gdpr-cookies-modal #bs-gdpr-cookies-modal-advanced-btn" },
|
|
10
|
+
{ "waitForVisible": "#bs-gdpr-cookies-modal-advanced-types" },
|
|
11
|
+
{ "click": "#bs-gdpr-cookies-modal-advanced-types input[type=checkbox]:checked:not(:disabled)", "all": true, "optional": true },
|
|
12
|
+
{ "click": "#bs-gdpr-cookies-modal #bs-gdpr-cookies-modal-accept-btn" },
|
|
13
|
+
{ "waitForVisible": "#bs-gdpr-cookies-modal", "check": "none", "timeout": 2000, "optional": true }
|
|
14
|
+
],
|
|
15
|
+
"test": [{ "cookieContains": "CookieShow=true" }]
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "casasrurales",
|
|
3
|
+
"vendorUrl": "https://www.casasrurales.net/",
|
|
4
|
+
"cosmetic": false,
|
|
5
|
+
"prehideSelectors": ["#cookiesLayer"],
|
|
6
|
+
"detectCmp": [{ "exists": "#cookiesLayerInn .act-cook[data-cook='2']" }],
|
|
7
|
+
"detectPopup": [{ "visible": "#cookiesLayerInn" }],
|
|
8
|
+
"optIn": [{ "waitForThenClick": "#cookiesLayerInn .act-cook[data-cook='1']" }],
|
|
9
|
+
"optOut": [
|
|
10
|
+
{ "waitForThenClick": "#cookiesLayerInn .act-cook[data-cook='2']" },
|
|
11
|
+
{ "waitForThenClick": "#cookiesLayerConfig #btn_no_cookies" },
|
|
12
|
+
{ "waitForVisible": "#cookiesLayer", "check": "none", "timeout": 3000, "optional": true }
|
|
13
|
+
],
|
|
14
|
+
"test": [{ "cookieContains": "conf_cookies=2%3A2%3A2%3A2" }]
|
|
15
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ccoo",
|
|
3
|
+
"prehideSelectors": [".ccoo-cc-root"],
|
|
4
|
+
"detectCmp": [
|
|
5
|
+
{
|
|
6
|
+
"exists": ".ccoo-cc-root #sn-b-save"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"detectPopup": [
|
|
10
|
+
{
|
|
11
|
+
"visible": ".ccoo-cc-root .ccoo-cc-dialog"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"optIn": [
|
|
15
|
+
{
|
|
16
|
+
"waitForThenClick": ".ccoo-cc-root #adv-cookies-1 #accept-choices"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optOut": [
|
|
20
|
+
{
|
|
21
|
+
"waitForThenClick": ".ccoo-cc-root #sn-b-custom"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"waitForVisible": ".ccoo-cc-root #adv-cookies-3"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"click": ".ccoo-cc-root #adv-cookies-3 input[type=checkbox]:checked",
|
|
28
|
+
"all": true,
|
|
29
|
+
"optional": true
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"waitForThenClick": ".ccoo-cc-root #sn-b-save"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"test": [
|
|
36
|
+
{
|
|
37
|
+
"cookieContains": "config=0"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cdu-edu-au",
|
|
3
|
+
"vendorUrl": "https://www.cdu.edu.au/",
|
|
4
|
+
"cosmetic": true,
|
|
5
|
+
"runContext": {
|
|
6
|
+
"urlPattern": "^https?://(\\w+\\.)?cdu\\.edu\\.au/"
|
|
7
|
+
},
|
|
8
|
+
"prehideSelectors": ["#cookie-compliance"],
|
|
9
|
+
"detectCmp": [
|
|
10
|
+
{
|
|
11
|
+
"exists": "#cookie-compliance [data-cookie-accept]"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"detectPopup": [
|
|
15
|
+
{
|
|
16
|
+
"visible": "#cookie-compliance"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optIn": [
|
|
20
|
+
{
|
|
21
|
+
"waitForThenClick": "#cookie-compliance [data-cookie-accept]"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"optOut": [
|
|
25
|
+
{
|
|
26
|
+
"hide": "#cookie-compliance"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cnmc.gob.es",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https?://(\\w+\\.)?cnmc\\.gob\\.es/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": ["#cookiesjsr #cookiesSize.cookiesjsr-banner"],
|
|
7
|
+
"detectCmp": [{ "exists": "#cookiesjsr #cookiesSize.cookiesjsr-banner" }],
|
|
8
|
+
"detectPopup": [{ "visible": "#cookiesjsr" }, { "exists": "#cookiesSize.cookiesjsr-banner.active" }],
|
|
9
|
+
"optIn": [{ "waitForThenClick": "#cookiesSize .cookiesjsr-banner--action .cookiesjsr-btn.important" }],
|
|
10
|
+
"optOut": [
|
|
11
|
+
{ "waitForThenClick": "#cookiesSize .cookiesjsr-banner--action .cookiesjsr-btn:not(.important)" },
|
|
12
|
+
{ "waitForVisible": "#cookiesjsr", "timeout": 2000, "check": "none" }
|
|
13
|
+
]
|
|
14
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "comparandonos",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"main": true,
|
|
5
|
+
"frame": false,
|
|
6
|
+
"urlPattern": "^https?://(www\\.)?comparandonos\\.com/"
|
|
7
|
+
},
|
|
8
|
+
"prehideSelectors": ["#cookie-banner"],
|
|
9
|
+
"detectCmp": [
|
|
10
|
+
{
|
|
11
|
+
"exists": "#cookie-banner #customizeCookies"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"detectPopup": [
|
|
15
|
+
{
|
|
16
|
+
"visible": "#cookie-banner"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optIn": [
|
|
20
|
+
{
|
|
21
|
+
"waitForThenClick": "#cookie-banner #acceptCookies"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"optOut": [
|
|
25
|
+
{
|
|
26
|
+
"waitForThenClick": "#cookie-banner #customizeCookies"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"waitForVisible": "#cookie-settings #saveCookies"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"if": {
|
|
33
|
+
"exists": "#analytics-cookies:checked"
|
|
34
|
+
},
|
|
35
|
+
"then": [
|
|
36
|
+
{
|
|
37
|
+
"click": "#analytics-cookies"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"if": {
|
|
43
|
+
"exists": "#marketing-cookies:checked"
|
|
44
|
+
},
|
|
45
|
+
"then": [
|
|
46
|
+
{
|
|
47
|
+
"click": "#marketing-cookies"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"click": "#cookie-settings #saveCookies"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"test": [
|
|
56
|
+
{
|
|
57
|
+
"waitForVisible": "#cookie-settings",
|
|
58
|
+
"timeout": 1000,
|
|
59
|
+
"check": "none"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"visible": "#cookie-banner",
|
|
63
|
+
"check": "none"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "consent-backdrop",
|
|
3
|
+
"prehideSelectors": [".consent-backdrop > .consent[role=dialog][aria-labelledby=consent-title]"],
|
|
4
|
+
"detectCmp": [
|
|
5
|
+
{
|
|
6
|
+
"exists": ".consent-backdrop > .consent[role=dialog][aria-labelledby=consent-title] .consent__actions .consent__action--secondary"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"detectPopup": [
|
|
10
|
+
{
|
|
11
|
+
"visible": ".consent-backdrop > .consent[role=dialog][aria-labelledby=consent-title]"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"optIn": [
|
|
15
|
+
{
|
|
16
|
+
"waitForThenClick": ".consent-backdrop .consent__actions .consent__action--primary"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optOut": [
|
|
20
|
+
{
|
|
21
|
+
"click": ".consent-backdrop .consent__groups input[type=checkbox]:checked:not(:disabled)",
|
|
22
|
+
"all": true,
|
|
23
|
+
"optional": true
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"waitForThenClick": ".consent-backdrop .consent__actions .consent__action--secondary"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"test": [
|
|
30
|
+
{
|
|
31
|
+
"cookieContains": "consent_"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cookie-accordion-settings",
|
|
3
|
+
"vendorUrl": "https://unknown",
|
|
4
|
+
"prehideSelectors": [".cookie.cookie--open"],
|
|
5
|
+
"detectCmp": [
|
|
6
|
+
{
|
|
7
|
+
"exists": ".cookie .cookie__settings .cookie__save-settings"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"exists": ".cookie .cookie__open-settings"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"detectPopup": [
|
|
14
|
+
{
|
|
15
|
+
"visible": ".cookie.cookie--open .cookie__open-settings"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"optIn": [
|
|
19
|
+
{
|
|
20
|
+
"waitForThenClick": ".cookie.cookie--open .cookie__accept-all"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"optOut": [
|
|
24
|
+
{
|
|
25
|
+
"waitForThenClick": ".cookie.cookie--open .cookie__open-settings"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"waitForVisible": ".cookie .cookie__settings .cookie__save-settings"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"if": {
|
|
32
|
+
"visible": ".cookie .cookie__settings .cookie__decline-all"
|
|
33
|
+
},
|
|
34
|
+
"then": [
|
|
35
|
+
{
|
|
36
|
+
"click": ".cookie .cookie__settings .cookie__decline-all"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"else": [
|
|
40
|
+
{
|
|
41
|
+
"click": ".cookie .cookie__settings input.switch-toggler__checkbox:checked:not(:disabled)",
|
|
42
|
+
"all": true,
|
|
43
|
+
"optional": true
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"click": ".cookie .cookie__settings .cookie__save-settings"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"waitForVisible": ".cookie .cookie__open-settings",
|
|
52
|
+
"check": "none",
|
|
53
|
+
"timeout": 3000
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cookies-tip-v1",
|
|
3
|
+
"prehideSelectors": [".cookies-tip-v1-consent-container"],
|
|
4
|
+
"detectCmp": [{ "exists": ".cookies-tip-v1-consent-container [data-cky-tag=close-button]" }],
|
|
5
|
+
"detectPopup": [{ "visible": ".cookies-tip-v1-consent-container" }],
|
|
6
|
+
"optIn": [{ "waitForThenClick": ".cookies-tip-v1-consent-container [data-cky-tag=accept-button]" }],
|
|
7
|
+
"optOut": [{ "waitForThenClick": ".cookies-tip-v1-consent-container [data-cky-tag=close-button]" }],
|
|
8
|
+
"test": [{ "waitForVisible": ".cookies-tip-v1-consent-container", "timeout": 1000, "check": "none" }]
|
|
9
|
+
}
|