@duckduckgo/autoconsent 16.15.0 → 16.17.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 +30 -0
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +25 -5
- 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/content.bundle.js +25 -5
- 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.cjs.js +25 -5
- package/dist/autoconsent.esm.js +25 -5
- package/dist/autoconsent.playwright.js +25 -5
- package/dist/autoconsent.standalone.js +26 -6
- package/dist/types/cmps/admiral.d.ts +4 -0
- package/lib/cmps/admiral.ts +41 -5
- package/package.json +1 -1
- package/rules/autoconsent/pandectes.json +5 -3
- package/rules/autoconsent/theguardian.com.json +21 -0
- package/rules/autoconsent/youtube-mobile.json +1 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/admiral.spec.ts +10 -1
- package/tests/pandectes-mobile.spec.ts +7 -0
- package/tests/sourcepoint.spec.ts +7 -6
- package/tests/theguardian.com.spec.ts +11 -0
package/tests/admiral.spec.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
import generateCMPTests from '../playwright/runner';
|
|
2
2
|
|
|
3
|
-
generateCMPTests(
|
|
3
|
+
generateCMPTests(
|
|
4
|
+
'Admiral',
|
|
5
|
+
[
|
|
6
|
+
'https://townhall.com/columnists/anthony-constantini/2026/07/23/break-googles-monopoly-for-good-n2679904',
|
|
7
|
+
'https://redstate.com/',
|
|
8
|
+
'https://twitchy.com/',
|
|
9
|
+
'https://hotair.com/',
|
|
10
|
+
],
|
|
11
|
+
{ testOptIn: false },
|
|
12
|
+
);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import generateCMPTests from '../playwright/runner';
|
|
2
2
|
|
|
3
|
-
generateCMPTests('Sourcepoint-frame', [
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
]
|
|
3
|
+
generateCMPTests('Sourcepoint-frame', ['https://news.sky.com/', 'https://www.economist.com/', 'https://www.carwow.co.uk/']);
|
|
4
|
+
|
|
5
|
+
// The Guardian serves a "consent or pay" wall in the EU/EEA and UK (handled by the
|
|
6
|
+
// theguardian.com cosmetic rule); only the remaining regions get a free-reject popup.
|
|
7
|
+
generateCMPTests('Sourcepoint-frame', ['https://www.theguardian.com/'], {
|
|
8
|
+
skipRegions: ['GB', 'DE', 'FR', 'IT', 'ES', 'NL', 'PL', 'SE', 'NO', 'DK', 'CH'],
|
|
9
|
+
});
|
|
9
10
|
|
|
10
11
|
generateCMPTests(
|
|
11
12
|
'Sourcepoint-frame',
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
});
|