@duckduckgo/autoconsent 6.3.0 → 6.4.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.
@@ -646,6 +646,7 @@
646
646
  EVAL_BORLABS_0: () => !JSON.parse(decodeURIComponent(document.cookie.split(";").find((c) => c.indexOf("borlabs-cookie") !== -1).split("=", 2)[1])).consents.statistics,
647
647
  EVAL_BUNDESREGIERUNG_DE_0: () => document.cookie.match("cookie-allow-tracking=0"),
648
648
  EVAL_CANVA_0: () => !document.cookie.includes("gtm_fpc_engagement_event"),
649
+ EVAL_CC_BANNER2_0: () => !!document.cookie.match(/sncc=[^;]+D%3Dtrue/),
649
650
  EVAL_CLICKIO_0: () => document.cookie.includes("__lxG__consent__v2_daisybit="),
650
651
  EVAL_CLINCH_0: () => document.cookie.includes("ctc_rejected=1"),
651
652
  EVAL_COINBASE_0: () => JSON.parse(decodeURIComponent(document.cookie.match(/cm_(eu|default)_preferences=([0-9a-zA-Z\\{\\}\\[\\]%:]*);?/)[2])).consent.length <= 1,
@@ -698,6 +699,7 @@
698
699
  EVAL_SIRDATA_0: () => document.cookie.includes("euconsent-v2"),
699
700
  EVAL_SNIGEL_0: () => !!document.cookie.match("snconsent"),
700
701
  EVAL_STEAMPOWERED_0: () => JSON.parse(decodeURIComponent(document.cookie.split(";").find((s) => s.trim().startsWith("cookieSettings")).split("=")[1])).preference_state === 2,
702
+ EVAL_TAKEALOT_0: () => document.body.classList.remove("freeze") || (document.body.style = "") || true,
701
703
  EVAL_TARTEAUCITRON_0: () => tarteaucitron.userInterface.respondAll(false) || true,
702
704
  EVAL_TARTEAUCITRON_1: () => tarteaucitron.userInterface.respondAll(true) || true,
703
705
  EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)[0].includes("false"),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 2,
3
3
  "name": "Autoconsent",
4
- "version": "2023.11.10",
4
+ "version": "2023.11.14",
5
5
  "background": {
6
6
  "scripts": [
7
7
  "background.bundle.js"
@@ -777,6 +777,71 @@
777
777
  }
778
778
  ]
779
779
  },
780
+ {
781
+ "name": "cc-banner-springer",
782
+ "prehideSelectors": [
783
+ ".cc-banner[data-cc-banner]"
784
+ ],
785
+ "detectCmp": [
786
+ {
787
+ "exists": ".cc-banner[data-cc-banner]"
788
+ }
789
+ ],
790
+ "detectPopup": [
791
+ {
792
+ "visible": ".cc-banner[data-cc-banner]"
793
+ }
794
+ ],
795
+ "optIn": [
796
+ {
797
+ "waitForThenClick": ".cc-banner[data-cc-banner] button[data-cc-action=accept]"
798
+ }
799
+ ],
800
+ "optOut": [
801
+ {
802
+ "if": {
803
+ "exists": ".cc-banner[data-cc-banner] button[data-cc-action=reject]"
804
+ },
805
+ "then": [
806
+ {
807
+ "click": ".cc-banner[data-cc-banner] button[data-cc-action=reject]"
808
+ }
809
+ ],
810
+ "else": [
811
+ {
812
+ "waitForThenClick": ".cc-banner[data-cc-banner] button[data-cc-action=preferences]"
813
+ },
814
+ {
815
+ "waitFor": ".cc-preferences[data-cc-preferences]"
816
+ },
817
+ {
818
+ "click": ".cc-preferences[data-cc-preferences] input[type=radio][data-cc-action=toggle-category][value=off]",
819
+ "all": true
820
+ },
821
+ {
822
+ "if": {
823
+ "exists": ".cc-preferences[data-cc-preferences] button[data-cc-action=reject]"
824
+ },
825
+ "then": [
826
+ {
827
+ "click": ".cc-preferences[data-cc-preferences] button[data-cc-action=reject]"
828
+ }
829
+ ],
830
+ "else": [
831
+ {
832
+ "click": ".cc-preferences[data-cc-preferences] button[data-cc-action=save]"
833
+ }
834
+ ]
835
+ }
836
+ ]
837
+ }
838
+ ],
839
+ "test": [
840
+ {
841
+ "eval": "EVAL_CC_BANNER2_0"
842
+ }
843
+ ]
844
+ },
780
845
  {
781
846
  "name": "cc_banner",
782
847
  "cosmetic": true,
@@ -3917,7 +3982,7 @@
3917
3982
  "name": "takealot.com",
3918
3983
  "cosmetic": true,
3919
3984
  "prehideSelectors": [
3920
- "div[class^=\"cookies-banner-module_cookie-banner_\"]"
3985
+ "div[class^=\"cookies-banner-module_\"]"
3921
3986
  ],
3922
3987
  "detectCmp": [
3923
3988
  {
@@ -3937,8 +4002,19 @@
3937
4002
  "optOut": [
3938
4003
  {
3939
4004
  "hide": [
3940
- "div[class^=\"cookies-banner-module_cookie-banner_\"]"
4005
+ "div[class^=\"cookies-banner-module_\"]"
3941
4006
  ]
4007
+ },
4008
+ {
4009
+ "if": {
4010
+ "exists": "div[class^=\"cookies-banner-module_small-cookie-banner_\"]"
4011
+ },
4012
+ "then": [
4013
+ {
4014
+ "eval": "EVAL_TAKEALOT_0"
4015
+ }
4016
+ ],
4017
+ "else": []
3942
4018
  }
3943
4019
  ]
3944
4020
  },
@@ -646,6 +646,7 @@
646
646
  EVAL_BORLABS_0: () => !JSON.parse(decodeURIComponent(document.cookie.split(";").find((c) => c.indexOf("borlabs-cookie") !== -1).split("=", 2)[1])).consents.statistics,
647
647
  EVAL_BUNDESREGIERUNG_DE_0: () => document.cookie.match("cookie-allow-tracking=0"),
648
648
  EVAL_CANVA_0: () => !document.cookie.includes("gtm_fpc_engagement_event"),
649
+ EVAL_CC_BANNER2_0: () => !!document.cookie.match(/sncc=[^;]+D%3Dtrue/),
649
650
  EVAL_CLICKIO_0: () => document.cookie.includes("__lxG__consent__v2_daisybit="),
650
651
  EVAL_CLINCH_0: () => document.cookie.includes("ctc_rejected=1"),
651
652
  EVAL_COINBASE_0: () => JSON.parse(decodeURIComponent(document.cookie.match(/cm_(eu|default)_preferences=([0-9a-zA-Z\\{\\}\\[\\]%:]*);?/)[2])).consent.length <= 1,
@@ -698,6 +699,7 @@
698
699
  EVAL_SIRDATA_0: () => document.cookie.includes("euconsent-v2"),
699
700
  EVAL_SNIGEL_0: () => !!document.cookie.match("snconsent"),
700
701
  EVAL_STEAMPOWERED_0: () => JSON.parse(decodeURIComponent(document.cookie.split(";").find((s) => s.trim().startsWith("cookieSettings")).split("=")[1])).preference_state === 2,
702
+ EVAL_TAKEALOT_0: () => document.body.classList.remove("freeze") || (document.body.style = "") || true,
701
703
  EVAL_TARTEAUCITRON_0: () => tarteaucitron.userInterface.respondAll(false) || true,
702
704
  EVAL_TARTEAUCITRON_1: () => tarteaucitron.userInterface.respondAll(true) || true,
703
705
  EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)[0].includes("false"),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Autoconsent",
4
- "version": "2023.11.10",
4
+ "version": "2023.11.14",
5
5
  "background": {
6
6
  "service_worker": "background.bundle.js"
7
7
  },
@@ -777,6 +777,71 @@
777
777
  }
778
778
  ]
779
779
  },
780
+ {
781
+ "name": "cc-banner-springer",
782
+ "prehideSelectors": [
783
+ ".cc-banner[data-cc-banner]"
784
+ ],
785
+ "detectCmp": [
786
+ {
787
+ "exists": ".cc-banner[data-cc-banner]"
788
+ }
789
+ ],
790
+ "detectPopup": [
791
+ {
792
+ "visible": ".cc-banner[data-cc-banner]"
793
+ }
794
+ ],
795
+ "optIn": [
796
+ {
797
+ "waitForThenClick": ".cc-banner[data-cc-banner] button[data-cc-action=accept]"
798
+ }
799
+ ],
800
+ "optOut": [
801
+ {
802
+ "if": {
803
+ "exists": ".cc-banner[data-cc-banner] button[data-cc-action=reject]"
804
+ },
805
+ "then": [
806
+ {
807
+ "click": ".cc-banner[data-cc-banner] button[data-cc-action=reject]"
808
+ }
809
+ ],
810
+ "else": [
811
+ {
812
+ "waitForThenClick": ".cc-banner[data-cc-banner] button[data-cc-action=preferences]"
813
+ },
814
+ {
815
+ "waitFor": ".cc-preferences[data-cc-preferences]"
816
+ },
817
+ {
818
+ "click": ".cc-preferences[data-cc-preferences] input[type=radio][data-cc-action=toggle-category][value=off]",
819
+ "all": true
820
+ },
821
+ {
822
+ "if": {
823
+ "exists": ".cc-preferences[data-cc-preferences] button[data-cc-action=reject]"
824
+ },
825
+ "then": [
826
+ {
827
+ "click": ".cc-preferences[data-cc-preferences] button[data-cc-action=reject]"
828
+ }
829
+ ],
830
+ "else": [
831
+ {
832
+ "click": ".cc-preferences[data-cc-preferences] button[data-cc-action=save]"
833
+ }
834
+ ]
835
+ }
836
+ ]
837
+ }
838
+ ],
839
+ "test": [
840
+ {
841
+ "eval": "EVAL_CC_BANNER2_0"
842
+ }
843
+ ]
844
+ },
780
845
  {
781
846
  "name": "cc_banner",
782
847
  "cosmetic": true,
@@ -3917,7 +3982,7 @@
3917
3982
  "name": "takealot.com",
3918
3983
  "cosmetic": true,
3919
3984
  "prehideSelectors": [
3920
- "div[class^=\"cookies-banner-module_cookie-banner_\"]"
3985
+ "div[class^=\"cookies-banner-module_\"]"
3921
3986
  ],
3922
3987
  "detectCmp": [
3923
3988
  {
@@ -3937,8 +4002,19 @@
3937
4002
  "optOut": [
3938
4003
  {
3939
4004
  "hide": [
3940
- "div[class^=\"cookies-banner-module_cookie-banner_\"]"
4005
+ "div[class^=\"cookies-banner-module_\"]"
3941
4006
  ]
4007
+ },
4008
+ {
4009
+ "if": {
4010
+ "exists": "div[class^=\"cookies-banner-module_small-cookie-banner_\"]"
4011
+ },
4012
+ "then": [
4013
+ {
4014
+ "eval": "EVAL_TAKEALOT_0"
4015
+ }
4016
+ ],
4017
+ "else": []
3942
4018
  }
3943
4019
  ]
3944
4020
  },
@@ -669,6 +669,7 @@ var snippets = {
669
669
  EVAL_BORLABS_0: () => !JSON.parse(decodeURIComponent(document.cookie.split(";").find((c) => c.indexOf("borlabs-cookie") !== -1).split("=", 2)[1])).consents.statistics,
670
670
  EVAL_BUNDESREGIERUNG_DE_0: () => document.cookie.match("cookie-allow-tracking=0"),
671
671
  EVAL_CANVA_0: () => !document.cookie.includes("gtm_fpc_engagement_event"),
672
+ EVAL_CC_BANNER2_0: () => !!document.cookie.match(/sncc=[^;]+D%3Dtrue/),
672
673
  EVAL_CLICKIO_0: () => document.cookie.includes("__lxG__consent__v2_daisybit="),
673
674
  EVAL_CLINCH_0: () => document.cookie.includes("ctc_rejected=1"),
674
675
  EVAL_COINBASE_0: () => JSON.parse(decodeURIComponent(document.cookie.match(/cm_(eu|default)_preferences=([0-9a-zA-Z\\{\\}\\[\\]%:]*);?/)[2])).consent.length <= 1,
@@ -721,6 +722,7 @@ var snippets = {
721
722
  EVAL_SIRDATA_0: () => document.cookie.includes("euconsent-v2"),
722
723
  EVAL_SNIGEL_0: () => !!document.cookie.match("snconsent"),
723
724
  EVAL_STEAMPOWERED_0: () => JSON.parse(decodeURIComponent(document.cookie.split(";").find((s) => s.trim().startsWith("cookieSettings")).split("=")[1])).preference_state === 2,
725
+ EVAL_TAKEALOT_0: () => document.body.classList.remove("freeze") || (document.body.style = "") || true,
724
726
  EVAL_TARTEAUCITRON_0: () => tarteaucitron.userInterface.respondAll(false) || true,
725
727
  EVAL_TARTEAUCITRON_1: () => tarteaucitron.userInterface.respondAll(true) || true,
726
728
  EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)[0].includes("false"),
@@ -644,6 +644,7 @@ var snippets = {
644
644
  EVAL_BORLABS_0: () => !JSON.parse(decodeURIComponent(document.cookie.split(";").find((c) => c.indexOf("borlabs-cookie") !== -1).split("=", 2)[1])).consents.statistics,
645
645
  EVAL_BUNDESREGIERUNG_DE_0: () => document.cookie.match("cookie-allow-tracking=0"),
646
646
  EVAL_CANVA_0: () => !document.cookie.includes("gtm_fpc_engagement_event"),
647
+ EVAL_CC_BANNER2_0: () => !!document.cookie.match(/sncc=[^;]+D%3Dtrue/),
647
648
  EVAL_CLICKIO_0: () => document.cookie.includes("__lxG__consent__v2_daisybit="),
648
649
  EVAL_CLINCH_0: () => document.cookie.includes("ctc_rejected=1"),
649
650
  EVAL_COINBASE_0: () => JSON.parse(decodeURIComponent(document.cookie.match(/cm_(eu|default)_preferences=([0-9a-zA-Z\\{\\}\\[\\]%:]*);?/)[2])).consent.length <= 1,
@@ -696,6 +697,7 @@ var snippets = {
696
697
  EVAL_SIRDATA_0: () => document.cookie.includes("euconsent-v2"),
697
698
  EVAL_SNIGEL_0: () => !!document.cookie.match("snconsent"),
698
699
  EVAL_STEAMPOWERED_0: () => JSON.parse(decodeURIComponent(document.cookie.split(";").find((s) => s.trim().startsWith("cookieSettings")).split("=")[1])).preference_state === 2,
700
+ EVAL_TAKEALOT_0: () => document.body.classList.remove("freeze") || (document.body.style = "") || true,
699
701
  EVAL_TARTEAUCITRON_0: () => tarteaucitron.userInterface.respondAll(false) || true,
700
702
  EVAL_TARTEAUCITRON_1: () => tarteaucitron.userInterface.respondAll(true) || true,
701
703
  EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)[0].includes("false"),