Closed chryxc closed 9 months ago
Rules with hardcoded actions are rejected. The rules should use the user's preference to select the action - for hochschule-bochum.de it shall fill out the boxes instead of clicking "auswahl speichern". For turnier.de you need to fill out the rest of the boxes as you have done with "basic analystics"
I tried to fix that for both sites, however the extension icon shows a red cross with the following JSON rule, although I don't know why (same problem for hochschule-bochum.de). When I remove the 2nd and 3rd consent actions it works as before.
{
"$schema": "https://raw.githubusercontent.com/cavi-au/Consent-O-Matic/master/rules.schema.json",
"turnier.de": {
"detectors": [
{
"presentMatcher": [
{
"type": "css",
"target": {
"selector": ".message-page"
}
}
],
"showingMatcher": [
{
"type": "css",
"target": {
"selector": ".message-page",
"displayFilter": true
}
}
]
}
],
"methods": [
{
"name": "HIDE_CMP"
},
{
"action": {
"type": "click",
"target": {
"selector": ".js-show-purposes"
}
},
"name": "OPEN_OPTIONS"
},
{
"action": {
"type": "consent",
"consents": [
{
"matcher": {
"type": "css",
"target": {
"selector": "[for=\"CookiePurposes_1_\"]"
}
},
"falseAction": {
"type": "list",
"actions": [
{
"type": "wait",
"waitTime": 200
},
{
"type": "click",
"target": {
"selector": "[for=\"CookiePurposes_1_\"]"
}
}
]
},
"type": "B"
},
{
"matcher": {
"type": "css",
"target": {
"selector": "[for=\"CookiePurposes_2_\"]"
}
},
"trueAction": {
"type": "list",
"actions": [
{
"type": "wait",
"waitTime": 200
},
{
"type": "click",
"target": {
"selector": "[for=\"CookiePurposes_2_\"]"
}
}
]
},
"type": "F"
},
{
"matcher": {
"type": "css",
"target": {
"selector": "[for=\"CookiePurposes_3_\"]"
}
},
"trueAction": {
"type": "list",
"actions": [
{
"type": "wait",
"waitTime": 200
},
{
"type": "click",
"target": {
"selector": "[for=\"CookiePurposes_3_\"]"
}
}
]
},
"type": "E"
}
]
},
"name": "DO_CONSENT"
},
{
"action": {
"type": "click",
"target": {
"selector": ".js-save"
}
},
"name": "SAVE_CONSENT"
},
{
"name": "UTILITY"
}
]
}
}
Also works on dbv.turnier.de and badmintonnederland.toernooi.nl