@duckduckgo/autoconsent 16.17.0 → 16.18.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.
Files changed (41) hide show
  1. package/.agents/skills/proxy-testing/SKILL.md +17 -3
  2. package/.agents/skills/proxy-testing/scripts/regional-proxy.mjs +10 -3
  3. package/AGENTS.md +5 -4
  4. package/CHANGELOG.md +20 -0
  5. package/dist/addon-firefox/compact-rules.json +1 -1
  6. package/dist/addon-firefox/content.bundle.js +0 -90
  7. package/dist/addon-firefox/manifest.json +1 -1
  8. package/dist/addon-firefox/rule-index.json +1 -1
  9. package/dist/addon-firefox/rules.json +1 -1
  10. package/dist/addon-mv3/compact-rules.json +1 -1
  11. package/dist/addon-mv3/content.bundle.js +0 -90
  12. package/dist/addon-mv3/manifest.json +1 -1
  13. package/dist/addon-mv3/rule-index.json +1 -1
  14. package/dist/addon-mv3/rules.json +1 -1
  15. package/dist/autoconsent.cjs.js +0 -90
  16. package/dist/autoconsent.esm.js +0 -90
  17. package/dist/autoconsent.playwright.js +0 -90
  18. package/dist/autoconsent.standalone.js +1 -91
  19. package/lib/cmps/all.ts +0 -2
  20. package/package.json +1 -1
  21. package/rules/autoconsent/borlabs.json +48 -17
  22. package/rules/autoconsent/pornhub.json +27 -3
  23. package/rules/autoconsent/samsung-com.json +1 -1
  24. package/rules/compact-rules.json +1 -1
  25. package/rules/rule-index.json +1 -1
  26. package/rules/rules.json +1 -1
  27. package/tests/borlabs.spec.ts +1 -1
  28. package/tests/onetrust.spec.ts +4 -0
  29. package/tests/pornhub.spec.ts +2 -1
  30. package/tests/trustarc-newcm.spec.ts +1 -1
  31. package/tests/trustarc.spec.ts +0 -7
  32. package/tests-wtr/rules/cmp-test-urls.json +0 -1
  33. package/dist/types/cmps/trustarc-frame.d.ts +0 -15
  34. package/lib/cmps/trustarc-frame.ts +0 -126
  35. package/rules/autoconsent/complianz-opt-both.json +0 -12
  36. package/rules/autoconsent/deepl.json +0 -14
  37. package/rules/autoconsent/jdsports.json +0 -41
  38. package/rules/autoconsent/pornhub-compact-cookie-banner.json +0 -28
  39. package/tests/complianz-opt-both.spec.ts +0 -3
  40. package/tests/deepl.spec.ts +0 -5
  41. package/tests/jdsports.spec.ts +0 -3
@@ -1775,95 +1775,6 @@
1775
1775
  }
1776
1776
  };
1777
1777
 
1778
- // lib/cmps/trustarc-frame.ts
1779
- var TrustArcFrame = class extends AutoConsentCMPBase {
1780
- constructor() {
1781
- super(...arguments);
1782
- this.name = "TrustArc-frame";
1783
- this.runContext = {
1784
- main: false,
1785
- frame: true,
1786
- urlPattern: "^https://consent-pref\\.trustarc\\.com/\\?"
1787
- };
1788
- }
1789
- get hasSelfTest() {
1790
- return true;
1791
- }
1792
- get isIntermediate() {
1793
- return false;
1794
- }
1795
- get isCosmetic() {
1796
- return false;
1797
- }
1798
- async detectCmp() {
1799
- return true;
1800
- }
1801
- async detectPopup() {
1802
- return this.elementVisible("#defaultpreferencemanager", "any") && this.elementVisible(".mainContent", "any");
1803
- }
1804
- async navigateToSettings() {
1805
- await waitFor(
1806
- async () => {
1807
- return this.elementExists(".shp") || this.elementVisible(".advance", "any") || this.elementExists(".switch span:first-child");
1808
- },
1809
- 10,
1810
- 500
1811
- );
1812
- if (this.elementExists(".shp")) {
1813
- await this.click(".shp");
1814
- }
1815
- await this.waitForElement(".prefPanel", 5e3);
1816
- if (this.elementVisible(".advance", "any")) {
1817
- await this.click(".advance");
1818
- }
1819
- return await waitFor(() => this.elementVisible(".switch span:first-child", "any"), 5, 1e3);
1820
- }
1821
- async optOut() {
1822
- let timeout = 3e3;
1823
- if (await this.mainWorldEval("EVAL_TRUSTARC_FRAME_GTM")) {
1824
- timeout = 1500;
1825
- }
1826
- await waitFor(() => document.readyState === "complete", 20, 100);
1827
- await this.waitForElement(".mainContent[aria-hidden=false]", timeout);
1828
- if (await this.click(".rejectAll,.declineAllButtonLower", true)) {
1829
- return true;
1830
- }
1831
- if (this.elementExists(".prefPanel")) {
1832
- await this.waitForElement('.prefPanel[style="visibility: visible;"]', timeout);
1833
- }
1834
- if (await this.click("#catDetails0")) {
1835
- await this.click(".submit");
1836
- this.waitForThenClick("#gwt-debug-close_id", timeout);
1837
- return true;
1838
- }
1839
- if (await this.click(".required")) {
1840
- this.waitForThenClick("#gwt-debug-close_id", timeout);
1841
- return true;
1842
- }
1843
- await this.navigateToSettings();
1844
- await this.click(".switch span:nth-child(1):not(.active)", true);
1845
- await this.click(".submit");
1846
- this.waitForThenClick("#gwt-debug-close_id", timeout * 10);
1847
- return true;
1848
- }
1849
- async optIn() {
1850
- if (await this.click(".call")) {
1851
- return true;
1852
- }
1853
- await this.navigateToSettings();
1854
- await this.click(".switch span:nth-child(2)", true);
1855
- await this.click(".submit");
1856
- this.waitForElement("#gwt-debug-close_id", 3e5).then(() => {
1857
- this.click("#gwt-debug-close_id");
1858
- });
1859
- return true;
1860
- }
1861
- async test() {
1862
- await this.wait(500);
1863
- return await this.mainWorldEval("EVAL_TRUSTARC_FRAME_TEST");
1864
- }
1865
- };
1866
-
1867
1778
  // lib/cmps/cookiebot.ts
1868
1779
  var Cookiebot = class extends AutoConsentCMPBase {
1869
1780
  constructor() {
@@ -2594,7 +2505,6 @@
2594
2505
  // lib/cmps/all.ts
2595
2506
  var dynamicCMPs = [
2596
2507
  TrustArcTop,
2597
- TrustArcFrame,
2598
2508
  Cookiebot,
2599
2509
  SourcePoint,
2600
2510
  ConsentManager,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Autoconsent",
4
- "version": "2026.7.25",
4
+ "version": "2026.7.28",
5
5
  "background": {
6
6
  "service_worker": "background.bundle.js"
7
7
  },