Skip to content

Commit

Permalink
Fix reddit (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
sammacbeth authored Nov 18, 2022
1 parent a396e5c commit 1a18a5b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rules/autoconsent/reddit.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
"runContext": {
"urlPattern": "^https://www\\.reddit\\.com/"
},
"prehideSelectors": ["section:has(section > span > a[href^=\"https://www.reddit.com/policies/cookies\"])"],
"prehideSelectors": ["section:has(a[href^=\"https://www.reddit.com/policies/cookies\"])"],
"detectCmp": [
{ "exists": "section:has(> span > a[href^=\"https://www.reddit.com/policies/cookies\"])" }
{ "exists": "section:has(a[href^=\"https://www.reddit.com/policies/cookies\"])" }
],
"detectPopup": [
{ "visible": "section:has(> span > a[href^=\"https://www.reddit.com/policies/cookies\"])" }
{ "visible": "section:has(a[href^=\"https://www.reddit.com/policies/cookies\"])" }
],
"optIn": [
{ "waitForThenClick": "section:has(> span > a[href^=\"https://www.reddit.com/policies/cookies\"]) section form:last-child button" }
{ "waitForThenClick": "section:has(a[href^=\"https://www.reddit.com/policies/cookies\"]) section[class^='_'] > section:first-child form button" }
],
"optOut": [
{ "waitForThenClick": "section:has(> span > a[href^=\"https://www.reddit.com/policies/cookies\"]) section form:first-child button" }
{ "waitForThenClick": "section:has(a[href^=\"https://www.reddit.com/policies/cookies\"]) section[class^='_'] > section:last-child form button" }
],
"test": [
{"eval": "document.cookie.includes('eu_cookie={%22opted%22:true%2C%22nonessential%22:false}')"}
Expand Down

0 comments on commit 1a18a5b

Please sign in to comment.