@duckduckgo/autoconsent 10.0.0 → 10.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.
@@ -98,7 +98,13 @@
98
98
  EVAL_PUBTECH_0: () => document.cookie.includes("euconsent-v2") && (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)),
99
99
  EVAL_REDDIT_0: () => document.cookie.includes("eu_cookie={%22opted%22:true%2C%22nonessential%22:false}"),
100
100
  EVAL_SIBBO_0: () => !!window.localStorage.getItem("euconsent-v2"),
101
- EVAL_SIRDATA_0: () => document.cookie.includes("euconsent-v2"),
101
+ EVAL_SIRDATA_UNBLOCK_SCROLL: () => {
102
+ document.documentElement.classList.forEach((cls) => {
103
+ if (cls.startsWith("sd-cmp-"))
104
+ document.documentElement.classList.remove(cls);
105
+ });
106
+ return true;
107
+ },
102
108
  EVAL_SNIGEL_0: () => !!document.cookie.match("snconsent"),
103
109
  EVAL_STEAMPOWERED_0: () => JSON.parse(decodeURIComponent(document.cookie.split(";").find((s) => s.trim().startsWith("cookieSettings")).split("=")[1])).preference_state === 2,
104
110
  EVAL_SVT_TEST: () => document.cookie.includes('cookie-consent-1={"optedIn":true,"functionality":false,"statistics":false}'),
@@ -545,7 +545,13 @@
545
545
  EVAL_PUBTECH_0: () => document.cookie.includes("euconsent-v2") && (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)),
546
546
  EVAL_REDDIT_0: () => document.cookie.includes("eu_cookie={%22opted%22:true%2C%22nonessential%22:false}"),
547
547
  EVAL_SIBBO_0: () => !!window.localStorage.getItem("euconsent-v2"),
548
- EVAL_SIRDATA_0: () => document.cookie.includes("euconsent-v2"),
548
+ EVAL_SIRDATA_UNBLOCK_SCROLL: () => {
549
+ document.documentElement.classList.forEach((cls) => {
550
+ if (cls.startsWith("sd-cmp-"))
551
+ document.documentElement.classList.remove(cls);
552
+ });
553
+ return true;
554
+ },
549
555
  EVAL_SNIGEL_0: () => !!document.cookie.match("snconsent"),
550
556
  EVAL_STEAMPOWERED_0: () => JSON.parse(decodeURIComponent(document.cookie.split(";").find((s) => s.trim().startsWith("cookieSettings")).split("=")[1])).preference_state === 2,
551
557
  EVAL_SVT_TEST: () => document.cookie.includes('cookie-consent-1={"optedIn":true,"functionality":false,"statistics":false}'),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 2,
3
3
  "name": "Autoconsent",
4
- "version": "2024.2.2",
4
+ "version": "2024.3.1",
5
5
  "background": {
6
6
  "scripts": [
7
7
  "background.bundle.js"
@@ -1057,7 +1057,8 @@
1057
1057
  },
1058
1058
  {
1059
1059
  "click": ".cc-preferences[data-cc-preferences] input[type=radio][data-cc-action=toggle-category][value=off]",
1060
- "all": true
1060
+ "all": true,
1061
+ "optional": true
1061
1062
  },
1062
1063
  {
1063
1064
  "if": {
@@ -5200,6 +5201,7 @@
5200
5201
  },
5201
5202
  {
5202
5203
  "name": "Sirdata",
5204
+ "cosmetic": true,
5203
5205
  "prehideSelectors": [
5204
5206
  "#sd-cmp"
5205
5207
  ],
@@ -5220,12 +5222,10 @@
5220
5222
  ],
5221
5223
  "optOut": [
5222
5224
  {
5223
- "waitForThenClick": "#sd-cmp .sd-cmp-1pO44"
5224
- }
5225
- ],
5226
- "test": [
5225
+ "hide": "#sd-cmp"
5226
+ },
5227
5227
  {
5228
- "eval": "EVAL_SIRDATA_0"
5228
+ "eval": "EVAL_SIRDATA_UNBLOCK_SCROLL"
5229
5229
  }
5230
5230
  ]
5231
5231
  },
@@ -98,7 +98,13 @@
98
98
  EVAL_PUBTECH_0: () => document.cookie.includes("euconsent-v2") && (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)),
99
99
  EVAL_REDDIT_0: () => document.cookie.includes("eu_cookie={%22opted%22:true%2C%22nonessential%22:false}"),
100
100
  EVAL_SIBBO_0: () => !!window.localStorage.getItem("euconsent-v2"),
101
- EVAL_SIRDATA_0: () => document.cookie.includes("euconsent-v2"),
101
+ EVAL_SIRDATA_UNBLOCK_SCROLL: () => {
102
+ document.documentElement.classList.forEach((cls) => {
103
+ if (cls.startsWith("sd-cmp-"))
104
+ document.documentElement.classList.remove(cls);
105
+ });
106
+ return true;
107
+ },
102
108
  EVAL_SNIGEL_0: () => !!document.cookie.match("snconsent"),
103
109
  EVAL_STEAMPOWERED_0: () => JSON.parse(decodeURIComponent(document.cookie.split(";").find((s) => s.trim().startsWith("cookieSettings")).split("=")[1])).preference_state === 2,
104
110
  EVAL_SVT_TEST: () => document.cookie.includes('cookie-consent-1={"optedIn":true,"functionality":false,"statistics":false}'),
@@ -545,7 +545,13 @@
545
545
  EVAL_PUBTECH_0: () => document.cookie.includes("euconsent-v2") && (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)),
546
546
  EVAL_REDDIT_0: () => document.cookie.includes("eu_cookie={%22opted%22:true%2C%22nonessential%22:false}"),
547
547
  EVAL_SIBBO_0: () => !!window.localStorage.getItem("euconsent-v2"),
548
- EVAL_SIRDATA_0: () => document.cookie.includes("euconsent-v2"),
548
+ EVAL_SIRDATA_UNBLOCK_SCROLL: () => {
549
+ document.documentElement.classList.forEach((cls) => {
550
+ if (cls.startsWith("sd-cmp-"))
551
+ document.documentElement.classList.remove(cls);
552
+ });
553
+ return true;
554
+ },
549
555
  EVAL_SNIGEL_0: () => !!document.cookie.match("snconsent"),
550
556
  EVAL_STEAMPOWERED_0: () => JSON.parse(decodeURIComponent(document.cookie.split(";").find((s) => s.trim().startsWith("cookieSettings")).split("=")[1])).preference_state === 2,
551
557
  EVAL_SVT_TEST: () => document.cookie.includes('cookie-consent-1={"optedIn":true,"functionality":false,"statistics":false}'),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Autoconsent",
4
- "version": "2024.2.2",
4
+ "version": "2024.3.1",
5
5
  "background": {
6
6
  "service_worker": "background.bundle.js"
7
7
  },
@@ -1057,7 +1057,8 @@
1057
1057
  },
1058
1058
  {
1059
1059
  "click": ".cc-preferences[data-cc-preferences] input[type=radio][data-cc-action=toggle-category][value=off]",
1060
- "all": true
1060
+ "all": true,
1061
+ "optional": true
1061
1062
  },
1062
1063
  {
1063
1064
  "if": {
@@ -5200,6 +5201,7 @@
5200
5201
  },
5201
5202
  {
5202
5203
  "name": "Sirdata",
5204
+ "cosmetic": true,
5203
5205
  "prehideSelectors": [
5204
5206
  "#sd-cmp"
5205
5207
  ],
@@ -5220,12 +5222,10 @@
5220
5222
  ],
5221
5223
  "optOut": [
5222
5224
  {
5223
- "waitForThenClick": "#sd-cmp .sd-cmp-1pO44"
5224
- }
5225
- ],
5226
- "test": [
5225
+ "hide": "#sd-cmp"
5226
+ },
5227
5227
  {
5228
- "eval": "EVAL_SIRDATA_0"
5228
+ "eval": "EVAL_SIRDATA_UNBLOCK_SCROLL"
5229
5229
  }
5230
5230
  ]
5231
5231
  },
@@ -568,7 +568,13 @@ var snippets = {
568
568
  EVAL_PUBTECH_0: () => document.cookie.includes("euconsent-v2") && (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)),
569
569
  EVAL_REDDIT_0: () => document.cookie.includes("eu_cookie={%22opted%22:true%2C%22nonessential%22:false}"),
570
570
  EVAL_SIBBO_0: () => !!window.localStorage.getItem("euconsent-v2"),
571
- EVAL_SIRDATA_0: () => document.cookie.includes("euconsent-v2"),
571
+ EVAL_SIRDATA_UNBLOCK_SCROLL: () => {
572
+ document.documentElement.classList.forEach((cls) => {
573
+ if (cls.startsWith("sd-cmp-"))
574
+ document.documentElement.classList.remove(cls);
575
+ });
576
+ return true;
577
+ },
572
578
  EVAL_SNIGEL_0: () => !!document.cookie.match("snconsent"),
573
579
  EVAL_STEAMPOWERED_0: () => JSON.parse(decodeURIComponent(document.cookie.split(";").find((s) => s.trim().startsWith("cookieSettings")).split("=")[1])).preference_state === 2,
574
580
  EVAL_SVT_TEST: () => document.cookie.includes('cookie-consent-1={"optedIn":true,"functionality":false,"statistics":false}'),
@@ -543,7 +543,13 @@ var snippets = {
543
543
  EVAL_PUBTECH_0: () => document.cookie.includes("euconsent-v2") && (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)),
544
544
  EVAL_REDDIT_0: () => document.cookie.includes("eu_cookie={%22opted%22:true%2C%22nonessential%22:false}"),
545
545
  EVAL_SIBBO_0: () => !!window.localStorage.getItem("euconsent-v2"),
546
- EVAL_SIRDATA_0: () => document.cookie.includes("euconsent-v2"),
546
+ EVAL_SIRDATA_UNBLOCK_SCROLL: () => {
547
+ document.documentElement.classList.forEach((cls) => {
548
+ if (cls.startsWith("sd-cmp-"))
549
+ document.documentElement.classList.remove(cls);
550
+ });
551
+ return true;
552
+ },
547
553
  EVAL_SNIGEL_0: () => !!document.cookie.match("snconsent"),
548
554
  EVAL_STEAMPOWERED_0: () => JSON.parse(decodeURIComponent(document.cookie.split(";").find((s) => s.trim().startsWith("cookieSettings")).split("=")[1])).preference_state === 2,
549
555
  EVAL_SVT_TEST: () => document.cookie.includes('cookie-consent-1={"optedIn":true,"functionality":false,"statistics":false}'),