Skip to content

Instantly share code, notes, and snippets.

@danielvalentin
Last active August 20, 2026 10:43
Show Gist options
  • Select an option

  • Save danielvalentin/377331a9e5cfc072c867a60660596cc9 to your computer and use it in GitHub Desktop.

Select an option

Save danielvalentin/377331a9e5cfc072c867a60660596cc9 to your computer and use it in GitHub Desktop.
Consent-o-matic custom rules
{
"GeniusCom": {
"detectors": [
{
"type": "css",
"target": {
"selector": "#onetrust-consent-sdk"
}
}
],
"methods": [
{
"name": "action_list",
"action": [
{
"type": "click",
"target": {
"selector": "#onetrust-pc-btn-handler"
}
},
{
"type": "wait",
"wait": 500
},
{
"type": "click",
"target": {
"selector": ".ot-pc-refuse-all-handler"
}
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment