@duckduckgo/autoconsent 2.2.0 → 2.2.1

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.
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "privacymanager.io",
3
+ "prehideSelectors": ["#gdpr-consent-tool-wrapper", "iframe[src^=\"https://cmp-consent-tool.privacymanager.io\"]"],
4
+ "runContext": {
5
+ "url": "https://cmp-consent-tool.privacymanager.io",
6
+ "main": false,
7
+ "frame": true
8
+ },
9
+ "detectCmp": [{ "exists": "button#save" }],
10
+ "detectPopup": [{ "visible": "button#save" }],
11
+ "optIn": [{
12
+ "click": "button#save"
13
+ }],
14
+ "optOut": [
15
+ {
16
+ "if": { "exists": "#denyAll" },
17
+ "then": [
18
+ { "click": "#denyAll" },
19
+ { "waitForThenClick": ".okButton" }
20
+ ],
21
+ "else": [
22
+ { "waitForThenClick": "#manageSettings" },
23
+ { "waitFor": ".purposes-overview-list" },
24
+ { "waitFor": "button#saveAndExit" },
25
+ { "click": "span[role=checkbox][aria-checked=true]", "all": true, "optional": true },
26
+ { "click": "button#saveAndExit" }
27
+ ]
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "pubtech",
3
+ "prehideSelectors": ["#pubtech-cmp"],
4
+ "detectCmp": [
5
+ {
6
+ "exists": "#pubtech-cmp"
7
+ }
8
+ ],
9
+ "detectPopup": [
10
+ {
11
+ "visible": "#pubtech-cmp #pt-actions"
12
+ }
13
+ ],
14
+ "optIn": [
15
+ {
16
+ "if": {
17
+ "exists": "#pt-accept-all"
18
+ },
19
+ "then": [
20
+ {
21
+ "click": "#pubtech-cmp #pt-actions #pt-accept-all"
22
+ }
23
+ ],
24
+ "else": [
25
+ {
26
+ "click": "#pubtech-cmp #pt-actions button:nth-of-type(2)"
27
+ }
28
+ ]
29
+ }
30
+ ],
31
+ "optOut": [
32
+
33
+ {
34
+ "click": "#pubtech-cmp #pt-close"
35
+ }
36
+ ],
37
+ "test": [
38
+ {
39
+ "eval": "document.cookie.includes('euconsent-v2') && (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)) "
40
+ }
41
+ ]
42
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "sibbo",
3
+ "prehideSelectors": ["sibbo-cmp-layout"],
4
+ "detectCmp": [{ "exists": "sibbo-cmp-layout" }],
5
+ "detectPopup": [{ "visible": "sibbo-cmp-layout" }],
6
+ "optIn": [{ "click": "sibbo-cmp-layout [data-accept-all]" }],
7
+ "optOut": [
8
+ {
9
+ "click": ".sibbo-panel__aside__buttons a[data-nav=\"purposes\"]"
10
+ },
11
+ {
12
+ "click": ".sibbo-panel__main__header__actions a[data-focusable=\"reject-all\"]"
13
+ },
14
+ {
15
+ "if": {
16
+ "exists": "[data-view=purposes] .sibbo-panel__main__footer__actions [data-save-and-exit]"
17
+ },
18
+ "then": [],
19
+ "else": [
20
+ {
21
+ "waitFor": ".sibbo-panel__main__footer__actions a[data-focusable=\"next\"]:not(.sibbo-cmp-button--disabled)"
22
+ },
23
+ {
24
+ "click": ".sibbo-panel__main__footer__actions a[data-focusable=\"next\"]"
25
+ },
26
+ {
27
+ "click": ".sibbo-panel__main div[data-view=\"purposesLegInt\"] a[data-focusable=\"reject-all\"]"
28
+ }
29
+ ]
30
+ },
31
+ {
32
+ "waitFor": ".sibbo-panel__main__footer__actions [data-save-and-exit]:not(.sibbo-cmp-button--disabled)"
33
+ },
34
+ {
35
+ "click": ".sibbo-panel__main__footer__actions [data-save-and-exit]:not(.sibbo-cmp-button--disabled)"
36
+ }
37
+ ],
38
+ "test": [
39
+ {
40
+ "eval": "!!window.localStorage.getItem('euconsent-v2')"
41
+ }
42
+ ]
43
+ }
package/rules/rules.json CHANGED
@@ -1552,7 +1552,7 @@
1552
1552
  "waitForVisible": "#moove_gdpr_cookie_modal"
1553
1553
  },
1554
1554
  {
1555
- "eval": "document.querySelectorAll('#moove_gdpr_cookie_modal input').forEach(i => { if (!i.disabled) i.checked = false }) || true"
1555
+ "eval": "document.querySelectorAll('#moove_gdpr_cookie_modal input').forEach(i => { if (!i.disabled && i.name !== 'moove_gdpr_strict_cookies') i.checked = false }) || true"
1556
1556
  },
1557
1557
  {
1558
1558
  "click": ".moove-gdpr-modal-save-settings"
@@ -1869,6 +1869,110 @@
1869
1869
  }
1870
1870
  ]
1871
1871
  },
1872
+ {
1873
+ "name": "privacymanager.io",
1874
+ "prehideSelectors": [
1875
+ "#gdpr-consent-tool-wrapper",
1876
+ "iframe[src^=\"https://cmp-consent-tool.privacymanager.io\"]"
1877
+ ],
1878
+ "runContext": {
1879
+ "url": "https://cmp-consent-tool.privacymanager.io",
1880
+ "main": false,
1881
+ "frame": true
1882
+ },
1883
+ "detectCmp": [
1884
+ {
1885
+ "exists": "button#save"
1886
+ }
1887
+ ],
1888
+ "detectPopup": [
1889
+ {
1890
+ "visible": "button#save"
1891
+ }
1892
+ ],
1893
+ "optIn": [
1894
+ {
1895
+ "click": "button#save"
1896
+ }
1897
+ ],
1898
+ "optOut": [
1899
+ {
1900
+ "if": {
1901
+ "exists": "#denyAll"
1902
+ },
1903
+ "then": [
1904
+ {
1905
+ "click": "#denyAll"
1906
+ },
1907
+ {
1908
+ "waitForThenClick": ".okButton"
1909
+ }
1910
+ ],
1911
+ "else": [
1912
+ {
1913
+ "waitForThenClick": "#manageSettings"
1914
+ },
1915
+ {
1916
+ "waitFor": ".purposes-overview-list"
1917
+ },
1918
+ {
1919
+ "waitFor": "button#saveAndExit"
1920
+ },
1921
+ {
1922
+ "click": "span[role=checkbox][aria-checked=true]",
1923
+ "all": true,
1924
+ "optional": true
1925
+ },
1926
+ {
1927
+ "click": "button#saveAndExit"
1928
+ }
1929
+ ]
1930
+ }
1931
+ ]
1932
+ },
1933
+ {
1934
+ "name": "pubtech",
1935
+ "prehideSelectors": [
1936
+ "#pubtech-cmp"
1937
+ ],
1938
+ "detectCmp": [
1939
+ {
1940
+ "exists": "#pubtech-cmp"
1941
+ }
1942
+ ],
1943
+ "detectPopup": [
1944
+ {
1945
+ "visible": "#pubtech-cmp #pt-actions"
1946
+ }
1947
+ ],
1948
+ "optIn": [
1949
+ {
1950
+ "if": {
1951
+ "exists": "#pt-accept-all"
1952
+ },
1953
+ "then": [
1954
+ {
1955
+ "click": "#pubtech-cmp #pt-actions #pt-accept-all"
1956
+ }
1957
+ ],
1958
+ "else": [
1959
+ {
1960
+ "click": "#pubtech-cmp #pt-actions button:nth-of-type(2)"
1961
+ }
1962
+ ]
1963
+ }
1964
+ ],
1965
+ "optOut": [
1966
+ {
1967
+ "click": "#pubtech-cmp #pt-close"
1968
+ }
1969
+ ],
1970
+ "test": [
1971
+ {
1972
+ "eval": "document.cookie.includes('euconsent-v2') && (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)) "
1973
+ }
1974
+ ]
1975
+ },
1872
1976
  {
1873
1977
  "name": "quantcast",
1874
1978
  "prehideSelectors": [
@@ -1911,6 +2015,63 @@
1911
2015
  }
1912
2016
  ]
1913
2017
  },
2018
+ {
2019
+ "name": "sibbo",
2020
+ "prehideSelectors": [
2021
+ "sibbo-cmp-layout"
2022
+ ],
2023
+ "detectCmp": [
2024
+ {
2025
+ "exists": "sibbo-cmp-layout"
2026
+ }
2027
+ ],
2028
+ "detectPopup": [
2029
+ {
2030
+ "visible": "sibbo-cmp-layout"
2031
+ }
2032
+ ],
2033
+ "optIn": [
2034
+ {
2035
+ "click": "sibbo-cmp-layout [data-accept-all]"
2036
+ }
2037
+ ],
2038
+ "optOut": [
2039
+ {
2040
+ "click": ".sibbo-panel__aside__buttons a[data-nav=\"purposes\"]"
2041
+ },
2042
+ {
2043
+ "click": ".sibbo-panel__main__header__actions a[data-focusable=\"reject-all\"]"
2044
+ },
2045
+ {
2046
+ "if": {
2047
+ "exists": "[data-view=purposes] .sibbo-panel__main__footer__actions [data-save-and-exit]"
2048
+ },
2049
+ "then": [],
2050
+ "else": [
2051
+ {
2052
+ "waitFor": ".sibbo-panel__main__footer__actions a[data-focusable=\"next\"]:not(.sibbo-cmp-button--disabled)"
2053
+ },
2054
+ {
2055
+ "click": ".sibbo-panel__main__footer__actions a[data-focusable=\"next\"]"
2056
+ },
2057
+ {
2058
+ "click": ".sibbo-panel__main div[data-view=\"purposesLegInt\"] a[data-focusable=\"reject-all\"]"
2059
+ }
2060
+ ]
2061
+ },
2062
+ {
2063
+ "waitFor": ".sibbo-panel__main__footer__actions [data-save-and-exit]:not(.sibbo-cmp-button--disabled)"
2064
+ },
2065
+ {
2066
+ "click": ".sibbo-panel__main__footer__actions [data-save-and-exit]:not(.sibbo-cmp-button--disabled)"
2067
+ }
2068
+ ],
2069
+ "test": [
2070
+ {
2071
+ "eval": "!!window.localStorage.getItem('euconsent-v2')"
2072
+ }
2073
+ ]
2074
+ },
1914
2075
  {
1915
2076
  "name": "Sirdata",
1916
2077
  "prehideSelectors": [
@@ -1,9 +1,7 @@
1
1
  import generateCMPTests from "../playwright/runner";
2
2
 
3
3
  generateCMPTests('Complianz banner', [
4
- 'http://v3.oann.com/',
5
4
  'https://bloodpressureok.com/',
6
5
  'https://www.fussball-wm.pro/',
7
- 'https://biselliano.info/',
8
6
  ], {}
9
7
  );
@@ -4,6 +4,7 @@ generateCMPTests('Moove', [
4
4
  'https://impact.parkinson.org/',
5
5
  'https://wamu.org/',
6
6
  'https://www.phorest.com/',
7
+ 'https://theposterclub.com/',
7
8
  ], {});
8
9
 
9
10
  generateCMPTests('Moove', [
package/tests/oil.spec.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import generateCMPTests from "../playwright/runner";
2
2
 
3
3
  generateCMPTests('com_oil', [
4
- 'https://www.lastminute.com/',
5
- 'https://www.nubert.de/',
4
+ 'https://www.farbtoner.com/',
5
+ 'https://www.elektro4000.de/',
6
+ 'http://edelholzverkauf.de/',
6
7
  ], {
7
8
  skipRegions: ['GB'],
8
9
  testOptIn: false,
@@ -9,7 +9,7 @@ generateCMPTests('Onetrust', [
9
9
  ]);
10
10
 
11
11
  generateCMPTests('Onetrust', [
12
- // 'https://mailchimp.com/', // polyfills Promise so playwright doesn't work
12
+ 'https://mailchimp.com/',
13
13
  "https://www.accenture.com/",
14
14
  'https://www.zoom.us',
15
15
  ], {
@@ -18,7 +18,7 @@ generateCMPTests('Onetrust', [
18
18
 
19
19
  // opt-in is not necessary in the US on this sites
20
20
  generateCMPTests('Onetrust', [
21
- // 'https://mailchimp.com/', // polyfills Promise so playwright doesn't work
21
+ 'https://mailchimp.com/',
22
22
  "https://www.accenture.com/",
23
23
  'https://www.zoom.us',
24
24
  ], {
@@ -0,0 +1,8 @@
1
+ import generateCMPTests from "../playwright/runner";
2
+
3
+ generateCMPTests('privacymanager.io', [
4
+ 'https://linuxhint.com/',
5
+ 'https://www.immmo.at/',
6
+ ], {
7
+ skipRegions: ['US']
8
+ });
@@ -0,0 +1,13 @@
1
+ import generateCMPTests from "../playwright/runner";
2
+
3
+ generateCMPTests('pubtech', [
4
+ 'https://www.lefonti.tv/',
5
+ 'https://www.liberoquotidiano.it/',
6
+ 'https://www.telefonino.net/',
7
+ 'https://www.fattoincasadabenedetta.it/',
8
+ 'https://www.quotidianopiemontese.it/',
9
+ 'https://www.iltelegrafolivorno.it/',
10
+ 'https://www.agrigentooggi.it/',
11
+ 'https://blog.cliomakeup.com/',
12
+ 'https://www.leccenews24.it/'
13
+ ]);
@@ -0,0 +1,16 @@
1
+ import generateCMPTests from "../playwright/runner";
2
+
3
+ generateCMPTests('sibbo', [
4
+ 'https://www.europafm.com/',
5
+ 'https://sibboventures.com/',
6
+ 'https://www.todopapas.com/',
7
+ 'https://www.estadiodeportivo.com/',
8
+ 'https://www.atresmediapublicidad.com/',
9
+ 'https://www.eitb.eus/',
10
+ 'https://beteve.cat/',
11
+ 'https://www.atresplayer.com/',
12
+ 'https://www.antena3.com/',
13
+ 'https://www.lasexta.com/',
14
+ 'https://www.atresmedia.com/'
15
+ ]
16
+ );