Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 26 additions & 31 deletions rules/optanon_springernature.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
{
"type": "css",
"target": {
"selector": ".cc-preferences[data-cc-preferences]"
"selector": ".cc-banner--is-tcf"
}
}
],
"showingMatcher": [
{
"type": "css",
"target": {
"selector": ".cc-preferences[data-cc-preferences] .cc-preferences__dialog"
"selector": ".cc-banner--is-tcf"
}
}
]
Expand All @@ -24,40 +24,35 @@
"methods": [
{
"action": {
"type": "list",
"actions": [
{
"type": "hide",
"target": {
"selector": ".cc-banner[data-cc-banner]"
}
},
{
"type": "hide",
"target": {
"selector": ".cc-preferences[data-cc-preferences]"
}
}
]
"type": "hide",
"target": {
"selector": ".cc-banner--is-tcf"
}
},
"name": "HIDE_CMP"
},
{
"action": {
"type": "click",
"target": {
"selector": ".cc-banner__button-preferences"
}
},
"name": "OPEN_OPTIONS"
},
{
"action": {
"type": "foreach",
"target": {
"selector": ".cc-preferences__category"
"selector": ".cc-preferences__body"
},
"action": {
"type": "list",
"actions": [
{
"type": "ifcss",
"target": {
"selector": ".cc-preferences__category-header",
"selector": ".cc-preferences__category-heading",
"textFilter": [
"Cookies that measure website use"
]
Expand All @@ -69,19 +64,19 @@
"matcher": {
"type": "css",
"target": {
"selector": ".cc-radio__input[value=\"on\"][checked]"
"selector": ".cc-switch__input"
}
},
"trueAction": {
"type": "click",
"target": {
"selector": ".cc-radio__input[value=\"on\"]"
"selector": ".cc-switch__input[checked=\"true\"]"
}
},
"falseAction": {
"type": "click",
"target": {
"selector": ".cc-radio__input[value=\"off\"]"
"selector": ".cc-switch__input[checked=\"false\"]"
}
},
"type": "B"
Expand All @@ -92,7 +87,7 @@
{
"type": "ifcss",
"target": {
"selector": ".cc-preferences__category-header",
"selector": ".cc-preferences__category-heading",
"textFilter": [
"Cookies that help with our communications and marketing"
]
Expand All @@ -104,19 +99,19 @@
"matcher": {
"type": "css",
"target": {
"selector": ".cc-radio__input[value=\"on\"][checked]"
"selector": ".cc-switch__input"
}
},
"trueAction": {
"type": "click",
"target": {
"selector": ".cc-radio__input[value=\"on\"]"
"selector": ".cc-switch__input[checked=\"true\"]"
}
},
"falseAction": {
"type": "click",
"target": {
"selector": ".cc-radio__input[value=\"off\"]"
"selector": ".cc-switch__input[checked=\"false\"]"
}
},
"type": "F"
Expand All @@ -127,7 +122,7 @@
{
"type": "ifcss",
"target": {
"selector": ".cc-preferences__category-header",
"selector": ".cc-preferences__category-heading",
"textFilter": [
"Cookies that help show personalised advertising"
]
Expand All @@ -139,19 +134,19 @@
"matcher": {
"type": "css",
"target": {
"selector": ".cc-radio__input[value=\"on\"][checked]"
"selector": ".cc-switch__input"
}
},
"trueAction": {
"type": "click",
"target": {
"selector": ".cc-radio__input[value=\"on\"]"
"selector": ".cc-switch__input[checked=\"true\"]"
}
},
"falseAction": {
"type": "click",
"target": {
"selector": ".cc-radio__input[value=\"off\"]"
"selector": ".cc-switch__input[checked=\"false\"]"
}
},
"type": "F"
Expand All @@ -178,4 +173,4 @@
}
]
}
}
}