@duckduckgo/autoconsent 10.6.1 → 10.6.2
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 +15 -0
- package/dist/addon-firefox/background.bundle.js +0 -1
- package/dist/addon-firefox/content.bundle.js +0 -1
- package/dist/addon-firefox/rules.json +7 -35
- package/dist/addon-mv3/background.bundle.js +0 -1
- package/dist/addon-mv3/content.bundle.js +0 -1
- package/dist/addon-mv3/rules.json +7 -35
- package/dist/autoconsent.cjs.js +0 -1
- package/dist/autoconsent.esm.js +0 -1
- package/dist/autoconsent.playwright.js +1 -1
- package/dist/autoconsent.unit.js +7 -36
- package/lib/eval-snippets.ts +0 -1
- package/package.json +1 -1
- package/readme.md +2 -2
- package/rules/autoconsent/dmgmedia.json +5 -1
- package/rules/autoconsent/sibbo.json +6 -33
- package/rules/rules.json +7 -35
- package/tests/sibbo.spec.ts +0 -1
package/dist/autoconsent.unit.js
CHANGED
|
@@ -565,7 +565,6 @@
|
|
|
565
565
|
EVAL_PRIMEBOX_0: () => !document.cookie.includes("cb-enabled=accepted"),
|
|
566
566
|
EVAL_PUBTECH_0: () => document.cookie.includes("euconsent-v2") && (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)),
|
|
567
567
|
EVAL_REDDIT_0: () => document.cookie.includes("eu_cookie={%22opted%22:true%2C%22nonessential%22:false}"),
|
|
568
|
-
EVAL_SIBBO_0: () => !!window.localStorage.getItem("euconsent-v2"),
|
|
569
568
|
EVAL_SIRDATA_UNBLOCK_SCROLL: () => {
|
|
570
569
|
document.documentElement.classList.forEach((cls) => {
|
|
571
570
|
if (cls.startsWith("sd-cmp-"))
|
|
@@ -4767,7 +4766,10 @@
|
|
|
4767
4766
|
all: true
|
|
4768
4767
|
},
|
|
4769
4768
|
{
|
|
4770
|
-
waitForThenClick:
|
|
4769
|
+
waitForThenClick: [
|
|
4770
|
+
'[data-project="mol-fe-cmp"] [class*=footer]',
|
|
4771
|
+
"xpath///button[contains(., 'Save & Exit')]"
|
|
4772
|
+
]
|
|
4771
4773
|
}
|
|
4772
4774
|
]
|
|
4773
4775
|
},
|
|
@@ -7641,48 +7643,17 @@
|
|
|
7641
7643
|
],
|
|
7642
7644
|
detectPopup: [
|
|
7643
7645
|
{
|
|
7644
|
-
visible: "
|
|
7646
|
+
visible: "#rejectAllMain"
|
|
7645
7647
|
}
|
|
7646
7648
|
],
|
|
7647
7649
|
optIn: [
|
|
7648
7650
|
{
|
|
7649
|
-
click: "
|
|
7651
|
+
click: "#acceptAllMain"
|
|
7650
7652
|
}
|
|
7651
7653
|
],
|
|
7652
7654
|
optOut: [
|
|
7653
7655
|
{
|
|
7654
|
-
click:
|
|
7655
|
-
},
|
|
7656
|
-
{
|
|
7657
|
-
click: '.sibbo-panel__main__header__actions a[data-focusable="reject-all"]'
|
|
7658
|
-
},
|
|
7659
|
-
{
|
|
7660
|
-
if: {
|
|
7661
|
-
exists: "[data-view=purposes] .sibbo-panel__main__footer__actions [data-save-and-exit]"
|
|
7662
|
-
},
|
|
7663
|
-
then: [],
|
|
7664
|
-
else: [
|
|
7665
|
-
{
|
|
7666
|
-
waitFor: '.sibbo-panel__main__footer__actions a[data-focusable="next"]:not(.sibbo-cmp-button--disabled)'
|
|
7667
|
-
},
|
|
7668
|
-
{
|
|
7669
|
-
click: '.sibbo-panel__main__footer__actions a[data-focusable="next"]'
|
|
7670
|
-
},
|
|
7671
|
-
{
|
|
7672
|
-
click: '.sibbo-panel__main div[data-view="purposesLegInt"] a[data-focusable="reject-all"]'
|
|
7673
|
-
}
|
|
7674
|
-
]
|
|
7675
|
-
},
|
|
7676
|
-
{
|
|
7677
|
-
waitFor: ".sibbo-panel__main__footer__actions [data-save-and-exit]:not(.sibbo-cmp-button--disabled)"
|
|
7678
|
-
},
|
|
7679
|
-
{
|
|
7680
|
-
click: ".sibbo-panel__main__footer__actions [data-save-and-exit]:not(.sibbo-cmp-button--disabled)"
|
|
7681
|
-
}
|
|
7682
|
-
],
|
|
7683
|
-
test: [
|
|
7684
|
-
{
|
|
7685
|
-
eval: "EVAL_SIBBO_0"
|
|
7656
|
+
click: "#rejectAllMain"
|
|
7686
7657
|
}
|
|
7687
7658
|
]
|
|
7688
7659
|
},
|
package/lib/eval-snippets.ts
CHANGED
|
@@ -109,7 +109,6 @@ export const snippets = {
|
|
|
109
109
|
EVAL_PRIMEBOX_0: () => !document.cookie.includes('cb-enabled=accepted'),
|
|
110
110
|
EVAL_PUBTECH_0: () => document.cookie.includes('euconsent-v2') && (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)) ,
|
|
111
111
|
EVAL_REDDIT_0: () => document.cookie.includes('eu_cookie={%22opted%22:true%2C%22nonessential%22:false}'),
|
|
112
|
-
EVAL_SIBBO_0: () => !!window.localStorage.getItem('euconsent-v2'),
|
|
113
112
|
EVAL_SIRDATA_UNBLOCK_SCROLL: () => {
|
|
114
113
|
document.documentElement.classList.forEach(cls => {
|
|
115
114
|
if (cls.startsWith('sd-cmp-')) document.documentElement.classList.remove(cls)
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -22,7 +22,7 @@ The extension-specific code can be found in the `addon` directory. There are two
|
|
|
22
22
|
addon (found under `dist/addon` after building), one for `mv3` version for Chromium-based browsers, and a `firefox` version for Firefox.
|
|
23
23
|
You can load these in [Chrome](https://developer.chrome.com/docs/extensions/mv3/getstarted/#unpacked)
|
|
24
24
|
in developer mode, and in [Firefox](https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox/)
|
|
25
|
-
as a
|
|
25
|
+
as a temporary addon.
|
|
26
26
|
|
|
27
27
|
## Rules
|
|
28
28
|
|
|
@@ -225,4 +225,4 @@ MPLv2.
|
|
|
225
225
|
|
|
226
226
|
## Manual Testing
|
|
227
227
|
|
|
228
|
-
To test the extension / addon with Firefox, open the `about:debugging`, navigate to "This Firefox" on the menu and under "Temporary Extensions" click on "Load Temporary Addon". Select the `manifest.json` file from the `dist/firefox` directory. You will need to build the extension before as described above. The extension should then be active and you can test it manually by simply visiting websites.
|
|
228
|
+
To test the extension / addon with Firefox, open the `about:debugging`, navigate to "This Firefox" on the menu and under "Temporary Extensions" click on "Load Temporary Addon". Select the `manifest.json` file from the `dist/firefox` directory. You will need to build the extension before as described above. The extension should then be active and you can test it manually by simply visiting websites.
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
{ "waitForThenClick": "[data-project=\"mol-fe-cmp\"] button[class*=basic]" },
|
|
15
15
|
{ "waitForVisible": "[data-project=\"mol-fe-cmp\"] div[class*=\"tabContent\"]" },
|
|
16
16
|
{ "waitForThenClick": "[data-project=\"mol-fe-cmp\"] div[class*=\"toggle\"][class*=\"enabled\"]", "all": true },
|
|
17
|
-
{ "waitForThenClick":
|
|
17
|
+
{ "waitForThenClick": [
|
|
18
|
+
"[data-project=\"mol-fe-cmp\"] [class*=footer]",
|
|
19
|
+
"xpath///button[contains(., 'Save & Exit')]"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
18
22
|
]
|
|
19
23
|
}
|
|
@@ -2,42 +2,15 @@
|
|
|
2
2
|
"name": "sibbo",
|
|
3
3
|
"prehideSelectors": ["sibbo-cmp-layout"],
|
|
4
4
|
"detectCmp": [{ "exists": "sibbo-cmp-layout" }],
|
|
5
|
-
"detectPopup": [{ "visible": "
|
|
6
|
-
"optIn": [
|
|
7
|
-
"optOut": [
|
|
8
|
-
{
|
|
9
|
-
"click": ".sibbo-panel__aside__buttons a[data-nav=\"purposes\"]"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"click": ".sibbo-panel__main__header__actions a[data-focusable=\"reject-all\"]"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"if": {
|
|
16
|
-
"exists": "[data-view=purposes] .sibbo-panel__main__footer__actions [data-save-and-exit]"
|
|
17
|
-
},
|
|
18
|
-
"then": [],
|
|
19
|
-
"else": [
|
|
20
|
-
{
|
|
21
|
-
"waitFor": ".sibbo-panel__main__footer__actions a[data-focusable=\"next\"]:not(.sibbo-cmp-button--disabled)"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"click": ".sibbo-panel__main__footer__actions a[data-focusable=\"next\"]"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"click": ".sibbo-panel__main div[data-view=\"purposesLegInt\"] a[data-focusable=\"reject-all\"]"
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
},
|
|
5
|
+
"detectPopup": [{ "visible": "#rejectAllMain" }],
|
|
6
|
+
"optIn": [
|
|
31
7
|
{
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
{
|
|
35
|
-
"click": ".sibbo-panel__main__footer__actions [data-save-and-exit]:not(.sibbo-cmp-button--disabled)"
|
|
36
|
-
}
|
|
8
|
+
"click": "#acceptAllMain"
|
|
9
|
+
}
|
|
37
10
|
],
|
|
38
|
-
"
|
|
11
|
+
"optOut": [
|
|
39
12
|
{
|
|
40
|
-
"
|
|
13
|
+
"click": "#rejectAllMain"
|
|
41
14
|
}
|
|
42
15
|
]
|
|
43
16
|
}
|
package/rules/rules.json
CHANGED
|
@@ -2391,7 +2391,10 @@
|
|
|
2391
2391
|
"all": true
|
|
2392
2392
|
},
|
|
2393
2393
|
{
|
|
2394
|
-
"waitForThenClick":
|
|
2394
|
+
"waitForThenClick": [
|
|
2395
|
+
"[data-project=\"mol-fe-cmp\"] [class*=footer]",
|
|
2396
|
+
"xpath///button[contains(., 'Save & Exit')]"
|
|
2397
|
+
]
|
|
2395
2398
|
}
|
|
2396
2399
|
]
|
|
2397
2400
|
},
|
|
@@ -5265,48 +5268,17 @@
|
|
|
5265
5268
|
],
|
|
5266
5269
|
"detectPopup": [
|
|
5267
5270
|
{
|
|
5268
|
-
"visible": "
|
|
5271
|
+
"visible": "#rejectAllMain"
|
|
5269
5272
|
}
|
|
5270
5273
|
],
|
|
5271
5274
|
"optIn": [
|
|
5272
5275
|
{
|
|
5273
|
-
"click": "
|
|
5276
|
+
"click": "#acceptAllMain"
|
|
5274
5277
|
}
|
|
5275
5278
|
],
|
|
5276
5279
|
"optOut": [
|
|
5277
5280
|
{
|
|
5278
|
-
"click": "
|
|
5279
|
-
},
|
|
5280
|
-
{
|
|
5281
|
-
"click": ".sibbo-panel__main__header__actions a[data-focusable=\"reject-all\"]"
|
|
5282
|
-
},
|
|
5283
|
-
{
|
|
5284
|
-
"if": {
|
|
5285
|
-
"exists": "[data-view=purposes] .sibbo-panel__main__footer__actions [data-save-and-exit]"
|
|
5286
|
-
},
|
|
5287
|
-
"then": [],
|
|
5288
|
-
"else": [
|
|
5289
|
-
{
|
|
5290
|
-
"waitFor": ".sibbo-panel__main__footer__actions a[data-focusable=\"next\"]:not(.sibbo-cmp-button--disabled)"
|
|
5291
|
-
},
|
|
5292
|
-
{
|
|
5293
|
-
"click": ".sibbo-panel__main__footer__actions a[data-focusable=\"next\"]"
|
|
5294
|
-
},
|
|
5295
|
-
{
|
|
5296
|
-
"click": ".sibbo-panel__main div[data-view=\"purposesLegInt\"] a[data-focusable=\"reject-all\"]"
|
|
5297
|
-
}
|
|
5298
|
-
]
|
|
5299
|
-
},
|
|
5300
|
-
{
|
|
5301
|
-
"waitFor": ".sibbo-panel__main__footer__actions [data-save-and-exit]:not(.sibbo-cmp-button--disabled)"
|
|
5302
|
-
},
|
|
5303
|
-
{
|
|
5304
|
-
"click": ".sibbo-panel__main__footer__actions [data-save-and-exit]:not(.sibbo-cmp-button--disabled)"
|
|
5305
|
-
}
|
|
5306
|
-
],
|
|
5307
|
-
"test": [
|
|
5308
|
-
{
|
|
5309
|
-
"eval": "EVAL_SIBBO_0"
|
|
5281
|
+
"click": "#rejectAllMain"
|
|
5310
5282
|
}
|
|
5311
5283
|
]
|
|
5312
5284
|
},
|
package/tests/sibbo.spec.ts
CHANGED
|
@@ -3,7 +3,6 @@ import generateCMPTests from "../playwright/runner";
|
|
|
3
3
|
generateCMPTests('sibbo', [
|
|
4
4
|
'https://www.europafm.com/',
|
|
5
5
|
'https://sibboventures.com/',
|
|
6
|
-
'https://www.estadiodeportivo.com/',
|
|
7
6
|
'https://www.atresmediapublicidad.com/',
|
|
8
7
|
'https://www.eitb.eus/',
|
|
9
8
|
'https://beteve.cat/',
|