@duckduckgo/autoconsent 16.40.0 → 16.42.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/.agents/skills/proxy-testing/SKILL.md +5 -8
- package/.agents/skills/proxy-testing/scripts/regional-proxy.mjs +22 -22
- package/.agents/skills/proxy-testing/scripts/regional-proxy.test.mjs +61 -0
- package/CHANGELOG.md +32 -0
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rule-index.json +1 -1
- package/dist/addon-firefox/rules.json +1 -1
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/rule-index.json +1 -1
- package/dist/addon-mv3/rules.json +1 -1
- package/dist/autoconsent.standalone.js +1 -1
- package/package.json +1 -1
- package/rules/autoconsent/iubenda-rti.json +20 -0
- package/rules/autoconsent/sourcepoint-top.json +25 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/iubenda-rti.spec.ts +6 -0
- package/tests/iubenda.spec.ts +3 -7
- package/tests/sourcepoint-top.spec.ts +27 -0
- package/tests/sourcepoint.spec.ts +15 -3
- package/rules/autoconsent/theguardian.com.json +0 -31
- package/tests/theguardian.com.spec.ts +0 -11
package/tests/iubenda.spec.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import generateCMPTests from '../playwright/runner';
|
|
2
2
|
|
|
3
|
-
generateCMPTests(
|
|
4
|
-
'
|
|
5
|
-
|
|
6
|
-
{
|
|
7
|
-
skipRegions: ['AU'],
|
|
8
|
-
},
|
|
9
|
-
);
|
|
3
|
+
generateCMPTests('iubenda', ['https://www.rossignol.com/us/', 'https://www.lofficielusa.com/', 'https://www.3bmeteo.com/'], {
|
|
4
|
+
skipRegions: ['AU'],
|
|
5
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
// Top-frame companion to Sourcepoint-frame, covering the messages the frame rule has to
|
|
4
|
+
// bail on - chiefly "consent or pay" walls, where the only alternative to consenting is a
|
|
5
|
+
// paid subscription. These sites serve such a wall in every region we test.
|
|
6
|
+
generateCMPTests(
|
|
7
|
+
'sourcepoint-top',
|
|
8
|
+
[
|
|
9
|
+
'https://www.spiegel.de/',
|
|
10
|
+
'https://www.manager-magazin.de/',
|
|
11
|
+
'https://11freunde.de/',
|
|
12
|
+
'https://www.sueddeutsche.de/',
|
|
13
|
+
'https://www.transfermarkt.com/',
|
|
14
|
+
],
|
|
15
|
+
{
|
|
16
|
+
testOptIn: false,
|
|
17
|
+
testSelfTest: false,
|
|
18
|
+
},
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
// The Guardian only serves the consent-or-pay wall in the EU/EEA and UK; elsewhere it
|
|
22
|
+
// offers a free reject, which Sourcepoint-frame handles and this rule steps back from.
|
|
23
|
+
generateCMPTests('sourcepoint-top', ['https://www.theguardian.com/'], {
|
|
24
|
+
onlyRegions: ['GB', 'DE', 'FR', 'IT', 'ES', 'NL', 'PL', 'SE', 'NO', 'DK', 'CH'],
|
|
25
|
+
testOptIn: false,
|
|
26
|
+
testSelfTest: false,
|
|
27
|
+
});
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
import generateCMPTests from '../playwright/runner';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// The top-frame sourcepoint-top rule hides the message container as soon as it appears,
|
|
4
|
+
// without waiting to see whether Sourcepoint-frame can reject inside the iframe. Both rules
|
|
5
|
+
// therefore complete on sites that do offer a free reject, so two autoconsentDone messages
|
|
6
|
+
// per page is expected here rather than a sign of a reload loop.
|
|
7
|
+
const bothRulesComplete = { expectedRuns: 2 };
|
|
4
8
|
|
|
5
|
-
|
|
6
|
-
|
|
9
|
+
generateCMPTests(
|
|
10
|
+
'Sourcepoint-frame',
|
|
11
|
+
['https://news.sky.com/', 'https://www.economist.com/', 'https://www.carwow.co.uk/'],
|
|
12
|
+
bothRulesComplete,
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
// The Guardian serves a "consent or pay" wall in the EU/EEA and UK, where Sourcepoint-frame
|
|
16
|
+
// bails and only sourcepoint-top acts; the remaining regions get a free-reject popup.
|
|
7
17
|
generateCMPTests('Sourcepoint-frame', ['https://www.theguardian.com/'], {
|
|
18
|
+
...bothRulesComplete,
|
|
8
19
|
skipRegions: ['GB', 'DE', 'FR', 'IT', 'ES', 'NL', 'PL', 'SE', 'NO', 'DK', 'CH'],
|
|
9
20
|
});
|
|
10
21
|
|
|
@@ -18,6 +29,7 @@ generateCMPTests(
|
|
|
18
29
|
'https://reitschuster.de/',
|
|
19
30
|
],
|
|
20
31
|
{
|
|
32
|
+
...bothRulesComplete,
|
|
21
33
|
skipRegions: ['US', 'GB'],
|
|
22
34
|
},
|
|
23
35
|
);
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "theguardian.com",
|
|
3
|
-
"vendorUrl": "https://www.theguardian.com/",
|
|
4
|
-
"comment": "Sourcepoint 'consent or pay' wall shown in the EU/EEA (message 1482251) and UK (message 1482252), where the only reject option requires a paid subscription. The container id embeds the Sourcepoint message id, so we target the pay-wall variants specifically to avoid clashing with the free-reject Sourcepoint popup used in other regions (handled by Sourcepoint-frame). Brittle: message ids may change if the campaign is reconfigured.",
|
|
5
|
-
"cosmetic": true,
|
|
6
|
-
"minimumRuleStepVersion": 3,
|
|
7
|
-
"runContext": {
|
|
8
|
-
"urlPattern": "^https?://(\\w+\\.)?theguardian\\.com/",
|
|
9
|
-
"main": true,
|
|
10
|
-
"frame": false
|
|
11
|
-
},
|
|
12
|
-
"prehideSelectors": ["div[id='sp_message_container_1482251'],div[id='sp_message_container_1482252']"],
|
|
13
|
-
"detectCmp": [{ "exists": "div[id='sp_message_container_1482251'],div[id='sp_message_container_1482252']" }],
|
|
14
|
-
"detectPopup": [
|
|
15
|
-
{
|
|
16
|
-
"any": [
|
|
17
|
-
{ "visible": "div[id='sp_message_container_1482251'],div[id='sp_message_container_1482252']" },
|
|
18
|
-
{ "exists": "html.sp-message-open" }
|
|
19
|
-
]
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"optIn": [],
|
|
23
|
-
"optOut": [
|
|
24
|
-
{ "hide": "div[id='sp_message_container_1482251'],div[id='sp_message_container_1482252']" },
|
|
25
|
-
{
|
|
26
|
-
"stylesheet": "html.sp-message-open body { position: static !important; top: auto !important; width: auto !important; overflow: auto !important; }",
|
|
27
|
-
"stylesheetId": "theguardian-scroll-unlock"
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
"test": [{ "visible": "div[id='sp_message_container_1482251'],div[id='sp_message_container_1482252']", "check": "none" }]
|
|
31
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import generateCMPTests from '../playwright/runner';
|
|
2
|
-
|
|
3
|
-
// The Guardian shows a Sourcepoint "consent or pay" wall in the EU/EEA and UK,
|
|
4
|
-
// where the only reject option requires a paid subscription. A cosmetic rule
|
|
5
|
-
// dismisses it by hiding the Sourcepoint container and removing the scroll lock.
|
|
6
|
-
// Other regions keep a free-reject Sourcepoint popup handled by Sourcepoint-frame.
|
|
7
|
-
generateCMPTests('theguardian.com', ['https://www.theguardian.com/'], {
|
|
8
|
-
onlyRegions: ['GB', 'DE', 'FR', 'IT', 'ES', 'NL', 'PL', 'SE', 'NO', 'DK', 'CH'],
|
|
9
|
-
testOptIn: false,
|
|
10
|
-
testSelfTest: false,
|
|
11
|
-
});
|