@duckduckgo/autoconsent 16.63.0 → 17.1.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 +98 -0
- package/dist/addon-firefox/background.bundle.js +1 -0
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +177 -38
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/popup.bundle.js +1 -0
- package/dist/addon-firefox/rule-index.json +1 -1
- package/dist/addon-firefox/rules.json +1 -1
- package/dist/addon-mv3/background.bundle.js +1 -0
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/content.bundle.js +177 -38
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/popup.bundle.js +1 -0
- package/dist/addon-mv3/rule-index.json +1 -1
- package/dist/addon-mv3/rules.json +1 -1
- package/dist/autoconsent.cjs.js +177 -38
- package/dist/autoconsent.esm.js +177 -38
- package/dist/autoconsent.playwright.js +180 -38
- package/dist/autoconsent.standalone.js +178 -39
- package/dist/heuristics.cjs.js +15 -3
- package/dist/heuristics.mjs +15 -3
- package/dist/types/heuristics.d.ts +12 -3
- package/dist/types/types.d.ts +12 -1
- package/lib/cmps/base.ts +5 -1
- package/lib/heuristic-patterns.ts +18 -2
- package/lib/heuristics.ts +240 -45
- package/lib/types.ts +16 -1
- package/lib/utils.ts +1 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/rules/autoconsent/1pmobile.json +44 -0
- package/rules/autoconsent/amasty-gdpr-hyva.json +131 -0
- package/rules/autoconsent/amazonforum.json +86 -0
- package/rules/autoconsent/asrock.json +44 -0
- package/rules/autoconsent/babylist.json +23 -0
- package/rules/autoconsent/babylonbee.json +36 -0
- package/rules/autoconsent/bathnes-cookie-banner.json +31 -0
- package/rules/autoconsent/chairish.json +17 -0
- package/rules/autoconsent/chemicalbook.json +13 -0
- package/rules/autoconsent/chimnie-co-uk.json +21 -0
- package/rules/autoconsent/complianz-optin.json +5 -3
- package/rules/autoconsent/consentmo.json +5 -2
- package/rules/autoconsent/cookie-pref-form.json +48 -0
- package/rules/autoconsent/cookie-script.json +34 -15
- package/rules/autoconsent/endeavorhealth.json +31 -0
- package/rules/autoconsent/ensighten.json +3 -3
- package/rules/autoconsent/epaas.json +18 -1
- package/rules/autoconsent/fepblue-org.json +13 -0
- package/rules/autoconsent/fnsp-cookieconsent.json +30 -0
- package/rules/autoconsent/fod-fujitv.json +13 -0
- package/rules/autoconsent/fpl-com.json +34 -0
- package/rules/autoconsent/fuqer.json +11 -0
- package/rules/autoconsent/greatschools.json +13 -0
- package/rules/autoconsent/hamradio-com.json +13 -0
- package/rules/autoconsent/hkdir.json +33 -0
- package/rules/autoconsent/hubspot.json +7 -1
- package/rules/autoconsent/ibkr.json +16 -0
- package/rules/autoconsent/jetpens.json +44 -0
- package/rules/autoconsent/jokul-cookie-consent.json +28 -0
- package/rules/autoconsent/kanopy.json +88 -0
- package/rules/autoconsent/lego.json +27 -5
- package/rules/autoconsent/mainlinemenswear.json +39 -0
- package/rules/autoconsent/mars-cookies-prompt.json +20 -0
- package/rules/autoconsent/money-co-uk.json +21 -0
- package/rules/autoconsent/myjobquote.json +19 -0
- package/rules/autoconsent/niedziela-pl.json +35 -0
- package/rules/autoconsent/nikkeibp.json +10 -0
- package/rules/autoconsent/northwell-edu.json +29 -0
- package/rules/autoconsent/nts-org-uk.json +20 -0
- package/rules/autoconsent/nyu-langone.json +30 -0
- package/rules/autoconsent/ofsted-reports-cosmetic.json +13 -0
- package/rules/autoconsent/onecom-cookie-banner.json +25 -0
- package/rules/autoconsent/optum-legal-banner.json +10 -0
- package/rules/autoconsent/optum.json +35 -0
- package/rules/autoconsent/oslosportslager.no.json +34 -0
- package/rules/autoconsent/planned-parenthood.json +17 -0
- package/rules/autoconsent/plex.tv.json +52 -0
- package/rules/autoconsent/pornhub-compact-cookie-banner.json +1 -1
- package/rules/autoconsent/pornhub.json +1 -1
- package/rules/autoconsent/radio-canada.json +28 -0
- package/rules/autoconsent/regjeringen.no.json +13 -0
- package/rules/autoconsent/reviewsolicitors.json +41 -0
- package/rules/autoconsent/ring.json +1 -1
- package/rules/autoconsent/roll20.json +50 -0
- package/rules/autoconsent/sankei-digital.json +37 -0
- package/rules/autoconsent/sirdata.json +8 -3
- package/rules/autoconsent/site-notifications-cookie-usage.json +25 -0
- package/rules/autoconsent/sparebank1-optin.json +10 -0
- package/rules/autoconsent/texas-gov.json +22 -0
- package/rules/autoconsent/tiresize.com.json +17 -0
- package/rules/autoconsent/tri-table.json +6 -2
- package/rules/autoconsent/trillian.json +10 -0
- package/rules/autoconsent/tyreseeker.json +44 -0
- package/rules/autoconsent/uhcprovider.json +13 -0
- package/rules/autoconsent/united-online.json +66 -0
- package/rules/autoconsent/unitedutilities.json +52 -0
- package/rules/autoconsent/uttings.co.uk.json +22 -0
- package/rules/autoconsent/vinnova-se.json +50 -0
- package/rules/autoconsent/vortex-consent.json +33 -0
- package/rules/autoconsent/watchfinder.json +16 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/1pmobile.spec.ts +5 -0
- package/tests/amasty-gdpr-hyva.spec.ts +17 -0
- package/tests/amazonforum.spec.ts +9 -0
- package/tests/asrock.spec.ts +3 -0
- package/tests/babylist.spec.ts +3 -0
- package/tests/babylonbee.spec.ts +6 -0
- package/tests/bathnes-cookie-banner.spec.ts +3 -0
- package/tests/chairish.spec.ts +3 -0
- package/tests/chemicalbook.spec.ts +5 -0
- package/tests/chimnie-co-uk.spec.ts +3 -0
- package/tests/complianz-optin.spec.ts +2 -0
- package/tests/consentmo.spec.ts +2 -0
- package/tests/cookie-pref-form.spec.ts +8 -0
- package/tests/cookie-script.spec.ts +5 -0
- package/tests/endeavorhealth.spec.ts +3 -0
- package/tests/ensighten.spec.ts +7 -1
- package/tests/epaas.spec.ts +3 -0
- package/tests/fepblue-org.spec.ts +3 -0
- package/tests/fnsp-cookieconsent.spec.ts +9 -0
- package/tests/fod-fujitv.spec.ts +3 -0
- package/tests/fpl-com.spec.ts +3 -0
- package/tests/fuqer.spec.ts +3 -0
- package/tests/greatschools.spec.ts +3 -0
- package/tests/hamradio-com.spec.ts +3 -0
- package/tests/hkdir.spec.ts +10 -0
- package/tests/hubspot.spec.ts +6 -1
- package/tests/ibkr.spec.ts +18 -0
- package/tests/jetpens.spec.ts +5 -0
- package/tests/jokul-cookie-consent.spec.ts +3 -0
- package/tests/kanopy.spec.ts +5 -0
- package/tests/mainlinemenswear.spec.ts +3 -0
- package/tests/mars-cookies-prompt.spec.ts +3 -0
- package/tests/money-co-uk.spec.ts +3 -0
- package/tests/myjobquote.spec.ts +5 -0
- package/tests/niedziela-pl.spec.ts +3 -0
- package/tests/nikkeibp.spec.ts +8 -0
- package/tests/northwell-edu.spec.ts +3 -0
- package/tests/nts-org-uk.spec.ts +3 -0
- package/tests/nyu-langone.spec.ts +3 -0
- package/tests/ofsted-reports-cosmetic.spec.ts +3 -0
- package/tests/onecom-cookie-banner.spec.ts +5 -0
- package/tests/optum-legal-banner.spec.ts +9 -0
- package/tests/optum.spec.ts +6 -0
- package/tests/oslosportslager.no.spec.ts +3 -0
- package/tests/planned-parenthood.spec.ts +3 -0
- package/tests/plex.tv.spec.ts +5 -0
- package/tests/pornhub.spec.ts +1 -1
- package/tests/radio-canada.spec.ts +15 -0
- package/tests/regjeringen.no.spec.ts +3 -0
- package/tests/reviewsolicitors.spec.ts +3 -0
- package/tests/roll20.spec.ts +3 -0
- package/tests/sankei-digital.spec.ts +9 -0
- package/tests/sirdata.spec.ts +13 -1
- package/tests/site-notifications-cookie-usage.spec.ts +3 -0
- package/tests/sparebank1-optin.spec.ts +8 -0
- package/tests/texas-gov.spec.ts +3 -0
- package/tests/tiresize.com.spec.ts +3 -0
- package/tests/tri-table.spec.ts +1 -1
- package/tests/trillian.spec.ts +15 -0
- package/tests/tyreseeker.spec.ts +3 -0
- package/tests/uhcprovider.spec.ts +3 -0
- package/tests/united-online.spec.ts +4 -0
- package/tests/unitedutilities.spec.ts +11 -0
- package/tests/uttings.co.uk.spec.ts +3 -0
- package/tests/vinnova-se.spec.ts +6 -0
- package/tests/vortex-consent.spec.ts +18 -0
- package/tests/watchfinder.spec.ts +3 -0
- package/tests-wtr/heuristics/get-actionable-popups.ts +41 -7
- package/tests-wtr/heuristics/get-potential-popups.test.ts +235 -4
- package/tests-wtr/heuristics/heuristic-cmp.ts +16 -1
- package/tests-wtr/heuristics/heuristics-utils.test.ts +34 -4
- package/rules/generated/auto_CA_plex.tv_ee4.json +0 -40
- package/rules/generated/auto_CA_support.plex.tv_gn3.json +0 -40
- package/rules/generated/auto_US_interactivebrokers.com_0.json +0 -28
- package/tests/generated/auto_CA_plex.tv_ee4.spec.ts +0 -2
- package/tests/generated/auto_CA_support.plex.tv_gn3.spec.ts +0 -6
- package/tests/generated/auto_US_interactivebrokers.com_0.spec.ts +0 -3
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "united-online",
|
|
3
|
+
"vendorUrl": "https://www.juno.com/",
|
|
4
|
+
"prehideSelectors": ["#cookieDisclaimer.cookieDisc", "#cpra_banner_wrapper"],
|
|
5
|
+
"detectCmp": [
|
|
6
|
+
{
|
|
7
|
+
"exists": "#cookieDisclaimer a[onclick*=\"handleUSPrivacyAction('reject')\"], #cpra_banner_wrapper #cpra_btn_reject, #userConsentForAdsPopup #allowButton, #gdprPopup #consent_dialog_allow"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"detectPopup": [
|
|
11
|
+
{
|
|
12
|
+
"any": [
|
|
13
|
+
{
|
|
14
|
+
"visible": "#cookieDisclaimer, #cpra_banner_wrapper, #userConsentForAdsPopup",
|
|
15
|
+
"check": "any"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"exists": "#gdprPopup-popup.ui-popup-active"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"optIn": [
|
|
24
|
+
{
|
|
25
|
+
"waitForThenClick": "#cookieDisclaimer a[onclick*=\"handleUSPrivacyAction('accept')\"], #cpra_banner_wrapper #cpra_btn_accept"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"optOut": [
|
|
29
|
+
{
|
|
30
|
+
"if": {
|
|
31
|
+
"visible": "#cookieDisclaimer, #cpra_banner_wrapper",
|
|
32
|
+
"check": "any"
|
|
33
|
+
},
|
|
34
|
+
"then": [
|
|
35
|
+
{
|
|
36
|
+
"waitForThenClick": "#cookieDisclaimer a[onclick*=\"handleUSPrivacyAction('reject')\"], #cpra_banner_wrapper #cpra_btn_reject"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"if": {
|
|
42
|
+
"visible": "#userConsentForAdsPopup"
|
|
43
|
+
},
|
|
44
|
+
"then": [
|
|
45
|
+
{
|
|
46
|
+
"hide": "#userConsentForAdsPopup"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"if": {
|
|
52
|
+
"exists": "#gdprPopup-popup.ui-popup-active"
|
|
53
|
+
},
|
|
54
|
+
"then": [
|
|
55
|
+
{
|
|
56
|
+
"click": "#gdprPopup a[data-rel=\"back\"]"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"test": [
|
|
62
|
+
{
|
|
63
|
+
"cookieContains": "usprivacy=1YYN"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "unitedutilities",
|
|
3
|
+
"vendorUrl": "https://www.unitedutilities.com/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"main": true,
|
|
6
|
+
"frame": false,
|
|
7
|
+
"urlPattern": "^https?://(www\\.)?unitedutilities\\.com/"
|
|
8
|
+
},
|
|
9
|
+
"prehideSelectors": [".js-cookie-preferences"],
|
|
10
|
+
"detectCmp": [
|
|
11
|
+
{
|
|
12
|
+
"exists": ".js-cookie-preferences .js-manage-cta"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"detectPopup": [
|
|
16
|
+
{
|
|
17
|
+
"visible": ".js-cookie-preferences.is-active"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"optIn": [
|
|
21
|
+
{
|
|
22
|
+
"waitForThenClick": ".js-cookie-preferences .js-accept-all-cta"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"optOut": [
|
|
26
|
+
{
|
|
27
|
+
"waitForThenClick": ".js-cookie-preferences .js-manage-cta"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"waitForVisible": ".js-cookie-preferences .js-manage-panel button[type=submit]"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"click": "label[for=performace-no]",
|
|
34
|
+
"optional": true
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"click": "label[for=targeted-advertising-no]",
|
|
38
|
+
"optional": true
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"click": ".js-cookie-preferences .js-manage-panel button[type=submit]"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"test": [
|
|
45
|
+
{
|
|
46
|
+
"cookieContains": "advertisingCookies=false"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"cookieContains": "performanceAnalyticsCookies=false"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "uttings.co.uk",
|
|
3
|
+
"vendorUrl": "https://www.uttings.co.uk/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(www\\.)?uttings\\.co\\.uk/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": ["#cookie-notice", "#cookie-blur"],
|
|
8
|
+
"detectCmp": [{ "exists": "#cookie-notice #cookie_notice_manage" }],
|
|
9
|
+
"detectPopup": [{ "visible": "#cookie-notice #cookie_notice_manage" }],
|
|
10
|
+
"optIn": [{ "waitForThenClick": "#cookie-notice #cookie_notice_accept" }],
|
|
11
|
+
"optOut": [
|
|
12
|
+
{ "waitForThenClick": "#cookie-notice #cookie_notice_manage" },
|
|
13
|
+
{ "waitForVisible": ["#colorbox iframe.cboxIframe", "#cookie_notice_save"], "timeout": 10000 },
|
|
14
|
+
{
|
|
15
|
+
"click": ["#colorbox iframe.cboxIframe", ".cookie-field input[type=checkbox]:checked:not(:disabled)"],
|
|
16
|
+
"all": true,
|
|
17
|
+
"optional": true
|
|
18
|
+
},
|
|
19
|
+
{ "waitForThenClick": ["#colorbox iframe.cboxIframe", "#cookie_notice_save"], "timeout": 10000, "retry": 5, "retryInterval": 1000 }
|
|
20
|
+
],
|
|
21
|
+
"test": [{ "cookieContains": "COOKIES_ADVERTISING=0" }]
|
|
22
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vinnova-se",
|
|
3
|
+
"vendorUrl": "https://www.vinnova.se/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(www\\.)?vinnova\\.se/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": [".component-lightbox-gdpr"],
|
|
8
|
+
"detectCmp": [
|
|
9
|
+
{
|
|
10
|
+
"exists": ".component-lightbox-gdpr .gdpr_cookie_settings_accept_cookies"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"detectPopup": [
|
|
14
|
+
{
|
|
15
|
+
"visible": ".component-lightbox-gdpr .gdpr_cookie_settings_accept_cookies"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"optIn": [
|
|
19
|
+
{
|
|
20
|
+
"waitForThenClick": ".gdpr_cookie_settings_accept_cookies__button-container__button.button--solid--primary"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"optOut": [
|
|
24
|
+
{
|
|
25
|
+
"waitForThenClick": ".gdpr_cookie_settings_accept_cookies__button-container__button.button--solid--secondary"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"waitForVisible": ".gdpr_cookie_settings_cookie_settings"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"comment": "levels are cumulative: switching off the lowest level switches off all higher ones",
|
|
32
|
+
"if": {
|
|
33
|
+
"exists": ".gdpr_cookie_settings_cookie_settings .component-toggle-button[toggle_selected=True]"
|
|
34
|
+
},
|
|
35
|
+
"then": [
|
|
36
|
+
{
|
|
37
|
+
"click": ".gdpr_cookie_settings_cookie_settings .component-toggle-button[toggle_selected=True]"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"waitForThenClick": ".gdpr_cookie_settings_cookie_settings__main-section__button-container__button"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"test": [
|
|
46
|
+
{
|
|
47
|
+
"cookieContains": "_vinnova_gdpr=0"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vortex-consent",
|
|
3
|
+
"prehideSelectors": [".consent-overlay", "div.consent[role=dialog]"],
|
|
4
|
+
"detectCmp": [
|
|
5
|
+
{
|
|
6
|
+
"exists": "div.consent[role=dialog] .consent-main-buttons .consent-decline-all"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"detectPopup": [
|
|
10
|
+
{
|
|
11
|
+
"visible": "div.consent[role=dialog] .consent-main-buttons .consent-decline-all"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"optIn": [
|
|
15
|
+
{
|
|
16
|
+
"waitForThenClick": "div.consent[role=dialog] .consent-main-buttons .consent-accept-all"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optOut": [
|
|
20
|
+
{
|
|
21
|
+
"waitForThenClick": "div.consent[role=dialog] .consent-main-buttons .consent-decline-all"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"test": [
|
|
25
|
+
{
|
|
26
|
+
"cookieContains": "PrivacyPolicyOptOut"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"cookieContains": "UsageAnalysisConsent=yes",
|
|
30
|
+
"negated": true
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "watchfinder",
|
|
3
|
+
"vendorUrl": "https://www.watchfinder.co.uk/",
|
|
4
|
+
"cosmetic": false,
|
|
5
|
+
"prehideSelectors": ["#cookie-notice:has(.btn-configure)"],
|
|
6
|
+
"detectCmp": [{ "exists": "#cookie-notice .btn-configure" }, { "exists": "#modal_cookie-consent" }],
|
|
7
|
+
"detectPopup": [{ "visible": "#cookie-notice .btn-configure" }],
|
|
8
|
+
"optIn": [{ "waitForThenClick": "#cookie-notice .btn-accept-all" }],
|
|
9
|
+
"optOut": [
|
|
10
|
+
{ "waitForThenClick": "#cookie-notice .btn-configure" },
|
|
11
|
+
{ "waitForVisible": "#modal_cookie-consent" },
|
|
12
|
+
{ "click": "#modal_cookie-consent input.cookie-toggle:checked:not(:disabled)", "all": true, "optional": true },
|
|
13
|
+
{ "waitForThenClick": ".cookie_preferences .modal-footer button.fill-primary" }
|
|
14
|
+
],
|
|
15
|
+
"test": [{ "cookieContains": "%22ConsentAnalytical%22%3Afalse" }, { "cookieContains": "%22ConsentAdvertising%22%3Afalse" }]
|
|
16
|
+
}
|