Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix + Support for new CMP on Italian domains #416

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
1,383 changes: 1,383 additions & 0 deletions Rules.json

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion rules-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,15 @@
"https://raw.githubusercontent.com/cavi-au/Consent-O-Matic/master/rules/pubtech.json",
"https://raw.githubusercontent.com/cavi-au/Consent-O-Matic/master/rules/contentpass.json",
"https://raw.githubusercontent.com/cavi-au/Consent-O-Matic/master/rules/chefcookie.json",
"https://raw.githubusercontent.com/cavi-au/Consent-O-Matic/master/rules/cookiesjsr.json"
"https://raw.githubusercontent.com/cavi-au/Consent-O-Matic/master/rules/cookiesjsr.json",
"https://raw.githubusercontent.com/MattLomb/Consent-O-Matic/master/rules/wordpress_gdpr_popup.json",
"https://raw.githubusercontent.com/MattLomb/Consent-O-Matic/master/rules/cookieyes.json",
"https://raw.githubusercontent.com/MattLomb/Consent-O-Matic/master/rules/cookieConsent.json",
"https://raw.githubusercontent.com/MattLomb/Consent-O-Matic/master/rules/easycookieinfo.json",
"https://raw.githubusercontent.com/MattLomb/Consent-O-Matic/master/rules/cookie-notice.json",
"https://raw.githubusercontent.com/MattLomb/Consent-O-Matic/master/rules/cookie_consent.json",
"https://raw.githubusercontent.com/MattLomb/Consent-O-Matic/master/rules/avia.json",
"https://raw.githubusercontent.com/MattLomb/Consent-O-Matic/master/rules/gdpr_cookie_consent.json",
"https://raw.githubusercontent.com/MattLomb/Consent-O-Matic/master/rules/cookielaw.json"
]
}
123 changes: 123 additions & 0 deletions rules/avia.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
{
"$schema": "https://raw.githubusercontent.com/cavi-au/Consent-O-Matic/master/rules.schema.json",
"avia": {
"detectors": [
{
"presentMatcher": {
"type": "css",
"target": {
"selector": ".avia-cookie-consent-wrap"
}
},
"showingMatcher": {
"type": "css",
"target": {
"selector": ".avia-cookie-consent",
"displayFilter": true
}
}
}
],
"methods": [
{
"action": {
"type": "hide",
"target": {
"selector": ".avia-cookie-consent"
}
},
"name": "HIDE_CMP"
},
{
"action": {
"target": {
"selector": ".avia-button",
"textFilter": [
"impostazioni"
]
},
"type": "click"
},
"name": "OPEN_OPTIONS"
},
{
"action": {
"type": "list",
"actions": [
{
"type": "ifcss",
"target": {
"selector": ".tab_titles"
},
"trueAction": {
"type": "list",
"actions": [
{
"type": "click",
"selector": ".tab",
"textFilter": [
"Altri servizi esterni"
]
},
{
"type": "foreach",
"target": {
"childFilter": {
"target": {
"selector": "label",
"textFilter": [
"Clicca per attivare/disattivare Google Webfonts.",
"Clicca per attivare/disattivare Google Maps.",
"Clicca per attivare/disattivare Google reCaptcha.",
"Clicca per abilitare/disabilitare gli incorporamenti video."
]
}
},
"selector": ".av-toggle-switch"
},
"action": {
"type": "consent",
"consents": [
{
"matcher": {
"type": "css",
"target": {
"selector": "label"
}
},
"toggleAction": {
"type": "click",
"target": {
"selector": "label"
}
},
"type": "X"
}
]
}
}
]
}
}
]
},
"name": "DO_CONSENT"
},
{
"action": {
"type": "click",
"target": {
"selector": ".avia-button",
"textFilter": [
"Accettare le impostazioni"
]
}
},
"name": "SAVE_CONSENT"
},
{
"name": "UTILITY"
}
]
}
}
81 changes: 81 additions & 0 deletions rules/cookie-notice.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"$schema": "https://raw.githubusercontent.com/cavi-au/Consent-O-Matic/master/rules.schema.json",
"cookie-notice": {
"detectors": [
{
"presentMatcher": [
{
"type": "css",
"target": {
"selector": "#cookie-notice"
}
}
],
"showingMatcher": [
{
"type": "css",
"target": {
"selector": "#cookie-notice"
}
}
]
}
],
"methods": [
{
"action": {
"type": "list",
"actions": [
{
"type": "hide",
"target": {
"selector": "#cookie-notice"
}
},
{
"type": "hide",
"target": {
"selector": "#cookie-notice"
}
}
]
},
"name": "HIDE_CMP"
},
{
"action": {
"type": "list",
"actions": [
{
"type": "foreach",
"target": {
"selector": "#cn-notice-buttons"
},
"action": {
"type": "consent",
"consents": [
{
"matcher": {
"type": "css",
"target": {
"selector": "#cn-accept-cookie"
}
},
"toggleAction": {
"type": "click",
"target": {
"selector": "a#cn-accept-cookie"
}
},
"type": "X"
}
]
}
}
]
},
"name": "DO_CONSENT"
}
]
}
}
71 changes: 71 additions & 0 deletions rules/cookieConsent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"$schema": "https://raw.githubusercontent.com/cavi-au/Consent-O-Matic/master/rules.schema.json",
"cookieConsent": {
"detectors": [
{
"presentMatcher": {
"type": "css",
"target": {
"selector": ".cookieConsentWrapper"
}
},
"showingMatcher": {
"type": "css",
"target": {
"selector": ".cookieConsentWrapper"
}
}
}
],
"methods": [
{
"action": {
"type": "hide",
"target": {
"selector": ".cookieConsentWrapper"
}
},
"name": "HIDE_CMP"
},
{
"action": {
"target": {
"selector": ".cookieConsent__Button",
"textFilter": [
"Preferences",
"Preferenze"
]
},
"type": "click"
},
"name": "OPEN_OPTIONS"
},
{
"action": {
"type": "list",
"actions": [
{
"type": "click",
"target": {
"selector": ".cookieConsent__Button--Close"
}
},
{
"type": "click",
"target": {
"selector": ".cookieConsent__Button",
"textFilter": [
"Accetta"
]
}
}
]
},
"name": "SAVE_CONSENT"
},
{
"name": "UTILITY"
}
]
}
}
79 changes: 79 additions & 0 deletions rules/cookie_consent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"$schema": "https://raw.githubusercontent.com/cavi-au/Consent-O-Matic/master/rules.schema.json",
"cookie_consent": {
"detectors": [
{
"presentMatcher": {
"type": "css",
"target": {
"selector": ".cc-banner"
}
},
"showingMatcher": {
"type": "css",
"target": {
"selector": ".cc-banner"
}
}
}
],
"methods": [
{
"action": {
"type": "hide",
"target": {
"selector": ".cc-banner"
}
},
"name": "HIDE_CMP"
},
{
"action": {
"target": {
"selector": ".cc-settings"
},
"type": "click"
},
"name": "OPEN_OPTIONS"
},
{
"name": "DO_CONSENT"
},
{
"action": {
"type": "ifcss",
"target": {
"selector": ".cc-btn-save-settings"
},
"trueAction": {
"type": "list",
"actions": [
{
"type": "click",
"target": {
"selector": "a.cc-btn-save-settings"
}
},
{
"type": "click",
"target": {
"selector": "a.cc-allow"
}
}
]
},
"falseAction": {
"type": "click",
"target": {
"selector": "a.cc-allow"
}
}
},
"name": "SAVE_CONSENT"
},
{
"name": "UTILITY"
}
]
}
}
2 changes: 1 addition & 1 deletion rules/cookiebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@
{
"type": "hide",
"target": {
"selector": "#cookie-bar, #cookie-bar-prompt, #cookie-dialog"
"selector": "#cookie-bar, #cookie-bar-prompt, #cookie-dialog, #cookie-law-info-bar"
}
}
]
Expand Down
Loading