@duckduckgo/autoconsent 5.0.0 → 5.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.
- package/CHANGELOG.md +37 -0
- package/build.sh +28 -0
- package/data/coverage.json +853 -906
- package/dist/addon-firefox/background.bundle.js +295 -299
- package/dist/addon-firefox/content.bundle.js +1928 -1886
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rules.json +68 -1
- package/dist/addon-mv3/background.bundle.js +295 -299
- package/dist/addon-mv3/content.bundle.js +1928 -1886
- package/dist/addon-mv3/devtools/panel.js +130 -136
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/popup.bundle.js +160 -171
- package/dist/addon-mv3/rules.json +68 -1
- package/dist/autoconsent.cjs.js +2032 -1
- package/dist/autoconsent.esm.js +2005 -1
- package/dist/autoconsent.playwright.js +1 -1
- package/package.json +6 -9
- package/rules/autoconsent/burpee-com.json +1 -1
- package/rules/autoconsent/cookie-manager-popup.json +42 -0
- package/rules/autoconsent/usercentrics-api.json +6 -0
- package/rules/rules.json +68 -1
- package/tests/burpee-com.spec.ts +2 -1
- package/tests/cookie-manager-popup.spec.ts +8 -0
- package/tests/usercentrics-api.spec.ts +3 -1
- package/rollup.config.js +0 -103
|
@@ -653,7 +653,8 @@
|
|
|
653
653
|
"optOut": [
|
|
654
654
|
{
|
|
655
655
|
"hide": [
|
|
656
|
-
"#html-body #notice-cookie-block"
|
|
656
|
+
"#html-body #notice-cookie-block",
|
|
657
|
+
"#notice-cookie"
|
|
657
658
|
]
|
|
658
659
|
}
|
|
659
660
|
]
|
|
@@ -1134,6 +1135,66 @@
|
|
|
1134
1135
|
}
|
|
1135
1136
|
]
|
|
1136
1137
|
},
|
|
1138
|
+
{
|
|
1139
|
+
"name": "cookie-manager-popup",
|
|
1140
|
+
"cosmetic": false,
|
|
1141
|
+
"runContext": {
|
|
1142
|
+
"main": true,
|
|
1143
|
+
"frame": false
|
|
1144
|
+
},
|
|
1145
|
+
"intermediate": false,
|
|
1146
|
+
"detectCmp": [
|
|
1147
|
+
{
|
|
1148
|
+
"exists": "#notice-cookie-block #allow-functional-cookies, #notice-cookie-block #btn-cookie-settings"
|
|
1149
|
+
}
|
|
1150
|
+
],
|
|
1151
|
+
"detectPopup": [
|
|
1152
|
+
{
|
|
1153
|
+
"visible": "#notice-cookie-block"
|
|
1154
|
+
}
|
|
1155
|
+
],
|
|
1156
|
+
"optIn": [
|
|
1157
|
+
{
|
|
1158
|
+
"click": "#btn-cookie-allow"
|
|
1159
|
+
}
|
|
1160
|
+
],
|
|
1161
|
+
"optOut": [
|
|
1162
|
+
{
|
|
1163
|
+
"if": {
|
|
1164
|
+
"exists": "#allow-functional-cookies"
|
|
1165
|
+
},
|
|
1166
|
+
"then": [
|
|
1167
|
+
{
|
|
1168
|
+
"click": "#allow-functional-cookies"
|
|
1169
|
+
}
|
|
1170
|
+
],
|
|
1171
|
+
"else": [
|
|
1172
|
+
{
|
|
1173
|
+
"waitForThenClick": "#btn-cookie-settings"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"waitForVisible": ".modal-body"
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
"click": ".modal-body input:checked, .switch[data-switch=\"on\"]",
|
|
1180
|
+
"all": true,
|
|
1181
|
+
"optional": true
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
"click": "[role=\"dialog\"] .modal-footer button"
|
|
1185
|
+
}
|
|
1186
|
+
]
|
|
1187
|
+
}
|
|
1188
|
+
],
|
|
1189
|
+
"prehideSelectors": [
|
|
1190
|
+
"#btn-cookie-settings"
|
|
1191
|
+
],
|
|
1192
|
+
"test": [
|
|
1193
|
+
{
|
|
1194
|
+
"eval": "JSON.parse(document.cookie.split(';').find(c => c.trim().startsWith('CookieLevel')).split('=')[1]).social === false"
|
|
1195
|
+
}
|
|
1196
|
+
]
|
|
1197
|
+
},
|
|
1137
1198
|
{
|
|
1138
1199
|
"name": "cookie-notice",
|
|
1139
1200
|
"prehideSelectors": [
|
|
@@ -4411,6 +4472,12 @@
|
|
|
4411
4472
|
"detectPopup": [
|
|
4412
4473
|
{
|
|
4413
4474
|
"eval": "typeof UC_UI === 'object'"
|
|
4475
|
+
},
|
|
4476
|
+
{
|
|
4477
|
+
"exists": [
|
|
4478
|
+
"#usercentrics-root",
|
|
4479
|
+
"[data-testid=uc-container]"
|
|
4480
|
+
]
|
|
4414
4481
|
}
|
|
4415
4482
|
],
|
|
4416
4483
|
"optIn": [
|