@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.
@@ -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: '[data-project="mol-fe-cmp"] button[class*=white]'
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: "sibbo-cmp-layout"
7646
+ visible: "#rejectAllMain"
7645
7647
  }
7646
7648
  ],
7647
7649
  optIn: [
7648
7650
  {
7649
- click: "sibbo-cmp-layout [data-accept-all]"
7651
+ click: "#acceptAllMain"
7650
7652
  }
7651
7653
  ],
7652
7654
  optOut: [
7653
7655
  {
7654
- click: '.sibbo-panel__aside__buttons a[data-nav="purposes"]'
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
  },
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duckduckgo/autoconsent",
3
- "version": "10.6.1",
3
+ "version": "10.6.2",
4
4
  "description": "",
5
5
  "main": "dist/autoconsent.cjs.js",
6
6
  "module": "dist/autoconsent.esm.js",
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 tempoary addon.
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": "[data-project=\"mol-fe-cmp\"] button[class*=white]" }
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": "sibbo-cmp-layout" }],
6
- "optIn": [{ "click": "sibbo-cmp-layout [data-accept-all]" }],
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
- "waitFor": ".sibbo-panel__main__footer__actions [data-save-and-exit]:not(.sibbo-cmp-button--disabled)"
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
- "test": [
11
+ "optOut": [
39
12
  {
40
- "eval": "EVAL_SIBBO_0"
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": "[data-project=\"mol-fe-cmp\"] button[class*=white]"
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": "sibbo-cmp-layout"
5271
+ "visible": "#rejectAllMain"
5269
5272
  }
5270
5273
  ],
5271
5274
  "optIn": [
5272
5275
  {
5273
- "click": "sibbo-cmp-layout [data-accept-all]"
5276
+ "click": "#acceptAllMain"
5274
5277
  }
5275
5278
  ],
5276
5279
  "optOut": [
5277
5280
  {
5278
- "click": ".sibbo-panel__aside__buttons a[data-nav=\"purposes\"]"
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
  },
@@ -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/',