@duckduckgo/autoconsent 4.1.3 → 4.3.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 +64 -0
- package/dist/addon-firefox/content.bundle.js +3 -2
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rules.json +1496 -75
- package/dist/addon-mv3/content.bundle.js +3 -2
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/rules.json +1496 -75
- package/dist/autoconsent.cjs.js +1 -1
- package/dist/autoconsent.esm.js +1 -1
- package/dist/autoconsent.playwright.js +1 -1
- package/lib/cmps/trustarc-top.ts +4 -3
- package/package.json +2 -2
- package/rules/autoconsent/1password-com.json +11 -0
- package/rules/autoconsent/agolde-com.json +13 -0
- package/rules/autoconsent/altium-com.json +9 -0
- package/rules/autoconsent/aquasana-com.json +9 -0
- package/rules/autoconsent/athlinks-com.json +12 -0
- package/rules/autoconsent/automattic-cmp-optout.json +19 -0
- package/rules/autoconsent/bbb.json +12 -0
- package/rules/autoconsent/burpee-com.json +13 -0
- package/rules/autoconsent/canva.json +25 -0
- package/rules/autoconsent/civic-cookie-control.json +12 -0
- package/rules/autoconsent/clustrmaps-com.json +12 -0
- package/rules/autoconsent/complianz-optin.json +2 -2
- package/rules/autoconsent/cookiefirst.json +41 -0
- package/rules/autoconsent/crossfit-com.json +10 -0
- package/rules/autoconsent/dailymotion-us.json +9 -0
- package/rules/autoconsent/delta-com.json +12 -0
- package/rules/autoconsent/dmgmedia-us.json +20 -0
- package/rules/autoconsent/geeks-for-geeks.json +12 -0
- package/rules/autoconsent/healthline-media.json +18 -0
- package/rules/autoconsent/itopvpn-com.json +13 -0
- package/rules/autoconsent/justwatch-com.json +15 -0
- package/rules/autoconsent/ketch.json +28 -17
- package/rules/autoconsent/macpaw-com.json +13 -0
- package/rules/autoconsent/midway-usa.json +12 -0
- package/rules/autoconsent/nrk-no.json +9 -0
- package/rules/autoconsent/onlyFans.json +18 -0
- package/rules/autoconsent/paypal-us.json +25 -0
- package/rules/autoconsent/pinetools-com.json +13 -0
- package/rules/autoconsent/pmc-cmp.json +9 -0
- package/rules/autoconsent/pornpics.json +9 -0
- package/rules/autoconsent/samsung-com.json +12 -0
- package/rules/autoconsent/similarweb-com.json +13 -0
- package/rules/autoconsent/takealot-com.json +13 -0
- package/rules/autoconsent/tidbits-com.json +9 -0
- package/rules/autoconsent/tractor-supply.json +12 -0
- package/rules/autoconsent/trader-joes-com.json +9 -0
- package/rules/autoconsent/true-car.json +12 -0
- package/rules/autoconsent/truyo.json +17 -0
- package/rules/autoconsent/tumblr-com.json +10 -0
- package/rules/autoconsent/urbanarmorgear-com.json +9 -0
- package/rules/autoconsent/whitepages.json +12 -0
- package/rules/autoconsent/woo-commerce-com.json +20 -0
- package/rules/autoconsent/wpcc.json +9 -0
- package/rules/autoconsent/xhamster-eu.json +15 -0
- package/rules/autoconsent/xhamster-us.json +12 -0
- package/rules/autoconsent/youporn.json +9 -0
- package/rules/rules.json +1496 -75
- package/tests/1password-com.spec.ts +5 -0
- package/tests/agolde-com.spec.ts +5 -0
- package/tests/altium-com.spec.ts +5 -0
- package/tests/aquasana-com.spec.ts +5 -0
- package/tests/athlinks-com.spec.ts +5 -0
- package/tests/automattic-cmp-optout.spec.ts +9 -0
- package/tests/bbb.spec.ts +5 -0
- package/tests/burpee-com.spec.ts +5 -0
- package/tests/canva.spec.ts +5 -0
- package/tests/civic-cookie-control.spec.ts +8 -0
- package/tests/clustrmaps-com.spec.ts +5 -0
- package/tests/complianz-optin.spec.ts +4 -4
- package/tests/cookiefirst.spec.ts +7 -0
- package/tests/crossfit-com.spec.ts +5 -0
- package/tests/dailymotion-us.spec.ts +6 -0
- package/tests/delta.spec.ts +6 -0
- package/tests/dmgmedia-us.spec.ts +7 -0
- package/tests/flex-orange-pl.spec.ts +5 -0
- package/tests/geeks-for-geeks.spec.ts +6 -0
- package/tests/healthline-media.spec.ts +6 -0
- package/tests/itopvpn-com.spec.ts +5 -0
- package/tests/justwatch-com.spec.ts +5 -0
- package/tests/ketch.spec.ts +1 -0
- package/tests/macpaw-com.spec.ts +5 -0
- package/tests/midway-usa.spec.ts +6 -0
- package/tests/nrk-no.spec.ts +5 -0
- package/tests/onlyFans.spec.ts +5 -0
- package/tests/paypal-us.spec.ts +5 -0
- package/tests/pinetools-com.spec.ts +5 -0
- package/tests/pmc-cmp.spec.ts +7 -0
- package/tests/pornpics.spec.ts +5 -0
- package/tests/samsung.spec.ts +6 -0
- package/tests/similarweb-com.spec.ts +5 -0
- package/tests/takealot-com.spec.ts +5 -0
- package/tests/tidbits-com.spec.ts +5 -0
- package/tests/tractor-supply.spec.ts +6 -0
- package/tests/trader-joes-com.spec.ts +5 -0
- package/tests/true-car.spec.ts +6 -0
- package/tests/truyo.spec.ts +5 -0
- package/tests/tumblr-com.spec.ts +5 -0
- package/tests/urbanarmorgear-com.spec.ts +5 -0
- package/tests/whitepages.spec.ts +5 -0
- package/tests/woo-commerce-com.spec.ts +5 -0
- package/tests/wpcc.spec.ts +10 -0
- package/tests/xhamster-eu.spec.ts +9 -0
- package/tests/xhamster-us.spec.ts +11 -0
- package/tests/youporn.spec.ts +5 -0
- package/rules/autoconsent/metoffice-gov-uk.json +0 -8
- package/tests/metoffice-gov-uk.spec.ts +0 -7
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "trader-joes-com",
|
|
3
|
+
"cosmetic": true,
|
|
4
|
+
"prehideSelectors": ["div.aem-page > div[class^=\"CookiesAlert_cookiesAlert__\"]"],
|
|
5
|
+
"detectCmp": [{ "exists": "div.aem-page > div[class^=\"CookiesAlert_cookiesAlert__\"]" }],
|
|
6
|
+
"detectPopup": [{ "visible": "div.aem-page > div[class^=\"CookiesAlert_cookiesAlert__\"]" }],
|
|
7
|
+
"optIn": [{"click": "div[class^=\"CookiesAlert_cookiesAlert__container__\"] button" }],
|
|
8
|
+
"optOut": [{ "hide": ["div.aem-page > div[class^=\"CookiesAlert_cookiesAlert__\"]"] }]
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "true-car",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https://www\\.truecar\\.com/"
|
|
5
|
+
},
|
|
6
|
+
"cosmetic": true,
|
|
7
|
+
"prehideSelectors": [["div[aria-labelledby=\"cookie-banner-heading\"]"]],
|
|
8
|
+
"detectCmp": [{ "exists": "div[aria-labelledby=\"cookie-banner-heading\"]" }],
|
|
9
|
+
"detectPopup": [{ "visible": "div[aria-labelledby=\"cookie-banner-heading\"]" }],
|
|
10
|
+
"optIn": [{ "click": "div[aria-labelledby=\"cookie-banner-heading\"] > button[aria-label=\"Close\"]" }],
|
|
11
|
+
"optOut": [{ "hide": ["div[aria-labelledby=\"cookie-banner-heading\"]"] }]
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "truyo",
|
|
3
|
+
"prehideSelectors": ["#truyo-consent-module"],
|
|
4
|
+
"detectCmp": [
|
|
5
|
+
{ "wait": 1000 },
|
|
6
|
+
{ "exists": "#truyo-cookieBarContent" }
|
|
7
|
+
],
|
|
8
|
+
"detectPopup": [
|
|
9
|
+
{ "visible": "#truyo-consent-module" }
|
|
10
|
+
],
|
|
11
|
+
"optIn": [
|
|
12
|
+
{ "click": "button#acceptAllCookieButton" }
|
|
13
|
+
],
|
|
14
|
+
"optOut": [
|
|
15
|
+
{ "click": "button#declineAllCookieButton" }
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tumblr-com",
|
|
3
|
+
"cosmetic": true,
|
|
4
|
+
"prehideSelectors": ["#cmp-app-container"],
|
|
5
|
+
"detectCmp": [{ "exists": "#cmp-app-container" }],
|
|
6
|
+
"detectPopup": [{ "visible": "#cmp-app-container" }],
|
|
7
|
+
"optIn":
|
|
8
|
+
[{"click": "#tumblr #cmp-app-container div.components-modal__frame > iframe > html body > div > div > div.cmp__dialog-footer > div > button.components-button.white-space-normal.is-primary" }],
|
|
9
|
+
"optOut": [{ "hide": ["#cmp-app-container"] }]
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "urbanarmorgear-com",
|
|
3
|
+
"cosmetic": true,
|
|
4
|
+
"prehideSelectors": ["div[class^=\"Layout__CookieBannerContainer-\"]"],
|
|
5
|
+
"detectCmp": [{ "exists": "div[class^=\"Layout__CookieBannerContainer-\"]" }],
|
|
6
|
+
"detectPopup": [{ "visible": "div[class^=\"Layout__CookieBannerContainer-\"]" }],
|
|
7
|
+
"optIn": [{"click": "button[class^=\"CookieBanner__AcceptButton\"]" }],
|
|
8
|
+
"optOut": [{ "hide": ["div[class^=\"Layout__CookieBannerContainer-\"]"] }]
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "whitepages.com",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https://www\\.whitepages\\.com/"
|
|
5
|
+
},
|
|
6
|
+
"cosmetic": true,
|
|
7
|
+
"prehideSelectors": [".cookie-wrapper, .cookie-overlay"],
|
|
8
|
+
"detectCmp": [{ "exists": ".cookie-wrapper" }],
|
|
9
|
+
"detectPopup": [{ "visible": ".cookie-overlay" }],
|
|
10
|
+
"optIn": [{ "click": "button[aria-label=\"Got it\"]" }],
|
|
11
|
+
"optOut": [{ "hide": [".cookie-wrapper"] }]
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "woo-commerce-com",
|
|
3
|
+
"prehideSelectors": [".wccom-comp-privacy-banner .wccom-privacy-banner"],
|
|
4
|
+
"detectCmp": [{ "exists": ".wccom-comp-privacy-banner .wccom-privacy-banner" }],
|
|
5
|
+
"detectPopup": [{ "exists": ".wccom-comp-privacy-banner .wccom-privacy-banner" }],
|
|
6
|
+
"optIn": [{ "click": ".wccom-privacy-banner__content-buttons button.is-primary" }],
|
|
7
|
+
"optOut":[
|
|
8
|
+
{
|
|
9
|
+
"click": ".wccom-privacy-banner__content-buttons button.is-secondary"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"waitForThenClick": "input[type=checkbox][checked]:not([disabled])",
|
|
13
|
+
"all":true
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"click": "div.wccom-modal__footer > button"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "wpcc",
|
|
3
|
+
"cosmetic": true,
|
|
4
|
+
"prehideSelectors": [".wpcc-container"],
|
|
5
|
+
"detectCmp": [{ "exists": ".wpcc-container" }],
|
|
6
|
+
"detectPopup": [{ "exists": ".wpcc-container .wpcc-message" }],
|
|
7
|
+
"optIn": [{ "click": ".wpcc-compliance .wpcc-btn" }],
|
|
8
|
+
"optOut": [{ "hide": [".wpcc-container"] }]
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "xhamster-eu",
|
|
3
|
+
"prehideSelectors": [".cookies-modal"],
|
|
4
|
+
"detectCmp": [{ "exists": ".cookies-modal" }],
|
|
5
|
+
"detectPopup": [{ "exists": ".cookies-modal" }],
|
|
6
|
+
"optIn": [
|
|
7
|
+
{ "click": "button.cmd-button-accept-all" }
|
|
8
|
+
],
|
|
9
|
+
"optOut": [
|
|
10
|
+
{
|
|
11
|
+
"click": "button.cmd-button-reject-all"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "xhamster-us",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https:\/\/(www\\.)?xhamster\\d?\\.com"
|
|
5
|
+
},
|
|
6
|
+
"cosmetic": true,
|
|
7
|
+
"prehideSelectors": [".cookie-announce"],
|
|
8
|
+
"detectCmp": [{ "exists": ".cookie-announce" }],
|
|
9
|
+
"detectPopup": [{ "visible": ".cookie-announce .announce-text" }],
|
|
10
|
+
"optIn": [{ "click": ".cookie-announce button.xh-button" }],
|
|
11
|
+
"optOut": [{ "hide": [".cookie-announce"] }]
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "youporn.com",
|
|
3
|
+
"cosmetic": true,
|
|
4
|
+
"prehideSelectors": [".euCookieModal, #js_euCookieModal"],
|
|
5
|
+
"detectCmp": [{ "exists": ".euCookieModal" }],
|
|
6
|
+
"detectPopup": [{ "exists": ".euCookieModal, #js_euCookieModal" }],
|
|
7
|
+
"optIn": [{ "click": "button[name=\"user_acceptCookie\"]" }],
|
|
8
|
+
"optOut": [{ "hide": [".euCookieModal"] }]
|
|
9
|
+
}
|