-
Notifications
You must be signed in to change notification settings - Fork 136
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
Rules work on desktop but not in IOS #424
Comments
so it seem doesnt work on https://m.youtube.com/ but it work on https://www.youtube.com/ |
and can i ask some explanation cause im newbie about json |
{ |
I tried writing some new code but still not working can someone help/teach me how to do? |
Hi, thanks for the report. I have a hard time reproducing the issue you are pointing out. Can you describe it a bit better, what browser and platform are you using. For your questions regarding json and [role="dialog"] this is a CSS selector which is being matched on. I highly recommend you to use the inbuilt rule editor. which can be found under the plugin ->rule-list -> Open rule editor. It takes care of the exact syntax, and your only concern is which methods you are using and what it shall match on. |
I'm using safari on IOS 16.2 |
{
"$schema": "https://raw.githubusercontent.com/cavi-au/Consent-O-Matic/master/rules.schema.json",
"youtube_popup": {
"detectors": [
{
"presentMatcher": [
{
"type": "css",
"target": {
"selector": "[role="dialog"] a[href^="https://policies.google.com/privacy"]"
}
},
{
"type": "css",
"target": {
"selector": "[role="dialog"] a[href^="https://policies.google.com/technologies/cookies"]"
}
},
{
"type": "css",
"target": {
"selector": "[role="dialog"] a[href^="https://policies.google.com/terms"]"
}
}
],
"showingMatcher": [
{
"type": "css",
"target": {
"selector": "[role="dialog"]",
"textFilter": [
"g.co/privacytools"
]
}
}
]
}
],
"methods": [
{
"name": "HIDE_CMP"
},
{
"action": {
"type": "click",
"target": {
"selector": "[role="dialog"] button, [role="dialog"] a",
"textFilter": [
"Reject all",
"Rifiuta tutto"
]
}
},
"name": "OPEN_OPTIONS"
},
{
"name": "DO_CONSENT"
},
{
"name": "SAVE_CONSENT"
},
{
"name": "UTILITY"
}
]
}
}
The text was updated successfully, but these errors were encountered: