@duckduckgo/autoconsent 3.0.2 → 3.0.3
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/Jenkinsfile +26 -16
- package/dist/addon-firefox/content.bundle.js +1 -1
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rules.json +28 -9
- package/dist/addon-mv3/content.bundle.js +1 -1
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/rules.json +28 -9
- package/dist/autoconsent.cjs.js +1 -1
- package/dist/autoconsent.esm.js +1 -1
- package/dist/autoconsent.playwright.js +1 -1
- package/lib/cmps/onetrust.ts +1 -0
- package/package.json +1 -1
- package/rules/autoconsent/borlabs.json +40 -9
- package/rules/autoconsent/reddit.json +5 -5
- package/rules/rules.json +28 -9
- package/tests/borlabs.spec.ts +3 -3
- package/tests/sourcepoint.spec.ts +1 -0
|
@@ -1,12 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "borlabs",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
"detectCmp": [
|
|
4
|
+
{
|
|
5
|
+
"exists": "._brlbs-block-content"
|
|
6
|
+
}
|
|
7
|
+
],
|
|
8
|
+
"detectPopup": [
|
|
9
|
+
{
|
|
10
|
+
"visible": "._brlbs-bar-wrap,._brlbs-box-wrap"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"optIn": [
|
|
14
|
+
{
|
|
15
|
+
"click": "a[data-cookie-accept-all]"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
7
18
|
"optOut": [
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
19
|
+
{
|
|
20
|
+
"click": "a[data-cookie-individual]"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"waitForVisible": ".cookie-preference"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"click": "input[data-borlabs-cookie-checkbox]:checked",
|
|
27
|
+
"all": true,
|
|
28
|
+
"optional": true
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"click": "#CookiePrefSave"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"wait": 500
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"prehideSelectors": [
|
|
38
|
+
"#BorlabsCookieBox"
|
|
39
|
+
],
|
|
40
|
+
"test": [{
|
|
41
|
+
"eval": "!JSON.parse(decodeURIComponent(document.cookie.split(';').find(c => c.indexOf('borlabs-cookie') !== -1).split('=', 2)[1])).consents.statistics"
|
|
42
|
+
}]
|
|
43
|
+
}
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
"runContext": {
|
|
4
4
|
"urlPattern": "^https://www\\.reddit\\.com/"
|
|
5
5
|
},
|
|
6
|
-
"prehideSelectors": ["section:has(
|
|
6
|
+
"prehideSelectors": ["section:has(a[href^=\"https://www.reddit.com/policies/cookies\"])"],
|
|
7
7
|
"detectCmp": [
|
|
8
|
-
{ "exists": "section:has(
|
|
8
|
+
{ "exists": "section:has(a[href^=\"https://www.reddit.com/policies/cookies\"])" }
|
|
9
9
|
],
|
|
10
10
|
"detectPopup": [
|
|
11
|
-
{ "visible": "section:has(
|
|
11
|
+
{ "visible": "section:has(a[href^=\"https://www.reddit.com/policies/cookies\"])" }
|
|
12
12
|
],
|
|
13
13
|
"optIn": [
|
|
14
|
-
{ "waitForThenClick": "section:has(
|
|
14
|
+
{ "waitForThenClick": "section:has(a[href^=\"https://www.reddit.com/policies/cookies\"]) section[class^='_'] > section:first-child form button" }
|
|
15
15
|
],
|
|
16
16
|
"optOut": [
|
|
17
|
-
{ "waitForThenClick": "section:has(
|
|
17
|
+
{ "waitForThenClick": "section:has(a[href^=\"https://www.reddit.com/policies/cookies\"]) section[class^='_'] > section:last-child form button" }
|
|
18
18
|
],
|
|
19
19
|
"test": [
|
|
20
20
|
{"eval": "document.cookie.includes('eu_cookie={%22opted%22:true%2C%22nonessential%22:false}')"}
|
package/rules/rules.json
CHANGED
|
@@ -342,9 +342,6 @@
|
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
344
|
"name": "borlabs",
|
|
345
|
-
"prehideSelectors": [
|
|
346
|
-
"#BorlabsCookieBox"
|
|
347
|
-
],
|
|
348
345
|
"detectCmp": [
|
|
349
346
|
{
|
|
350
347
|
"exists": "._brlbs-block-content"
|
|
@@ -362,7 +359,29 @@
|
|
|
362
359
|
],
|
|
363
360
|
"optOut": [
|
|
364
361
|
{
|
|
365
|
-
"click": "a[data-cookie-
|
|
362
|
+
"click": "a[data-cookie-individual]"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"waitForVisible": ".cookie-preference"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"click": "input[data-borlabs-cookie-checkbox]:checked",
|
|
369
|
+
"all": true,
|
|
370
|
+
"optional": true
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"click": "#CookiePrefSave"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"wait": 500
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
"prehideSelectors": [
|
|
380
|
+
"#BorlabsCookieBox"
|
|
381
|
+
],
|
|
382
|
+
"test": [
|
|
383
|
+
{
|
|
384
|
+
"eval": "!JSON.parse(decodeURIComponent(document.cookie.split(';').find(c => c.indexOf('borlabs-cookie') !== -1).split('=', 2)[1])).consents.statistics"
|
|
366
385
|
}
|
|
367
386
|
]
|
|
368
387
|
},
|
|
@@ -2240,26 +2259,26 @@
|
|
|
2240
2259
|
"urlPattern": "^https://www\\.reddit\\.com/"
|
|
2241
2260
|
},
|
|
2242
2261
|
"prehideSelectors": [
|
|
2243
|
-
"section:has(
|
|
2262
|
+
"section:has(a[href^=\"https://www.reddit.com/policies/cookies\"])"
|
|
2244
2263
|
],
|
|
2245
2264
|
"detectCmp": [
|
|
2246
2265
|
{
|
|
2247
|
-
"exists": "section:has(
|
|
2266
|
+
"exists": "section:has(a[href^=\"https://www.reddit.com/policies/cookies\"])"
|
|
2248
2267
|
}
|
|
2249
2268
|
],
|
|
2250
2269
|
"detectPopup": [
|
|
2251
2270
|
{
|
|
2252
|
-
"visible": "section:has(
|
|
2271
|
+
"visible": "section:has(a[href^=\"https://www.reddit.com/policies/cookies\"])"
|
|
2253
2272
|
}
|
|
2254
2273
|
],
|
|
2255
2274
|
"optIn": [
|
|
2256
2275
|
{
|
|
2257
|
-
"waitForThenClick": "section:has(
|
|
2276
|
+
"waitForThenClick": "section:has(a[href^=\"https://www.reddit.com/policies/cookies\"]) section[class^='_'] > section:first-child form button"
|
|
2258
2277
|
}
|
|
2259
2278
|
],
|
|
2260
2279
|
"optOut": [
|
|
2261
2280
|
{
|
|
2262
|
-
"waitForThenClick": "section:has(
|
|
2281
|
+
"waitForThenClick": "section:has(a[href^=\"https://www.reddit.com/policies/cookies\"]) section[class^='_'] > section:last-child form button"
|
|
2263
2282
|
}
|
|
2264
2283
|
],
|
|
2265
2284
|
"test": [
|
package/tests/borlabs.spec.ts
CHANGED