Closed krystian3w closed 5 years ago
I can write cookies with privileged script snippets. But since this cookie wall gives the user a choice, I'll put this as under consideration
for now.
See: https://github.com/NanoAdblocker/NanoFilters/issues/124#issuecomment-403667249
Maybe just create another filterlist which contains rules which accepts all things.
and I have probably incorrectly copied the latest domain names for cookies.
It's like two and it's still easy to make a mistake.
URLs where this issue occurs (Required)
Screenshots (Required)
www.wikia.com
elderscrolls.wikia.com
gta.fandom.com
Screenshot of console (Required, press
F12
to open the console)N/A
Describe the issue (Optional if obvious)
Without click: ACCEPT ADVERTISING COOKIES / REJECT ADVERTISING COOKIES
no possible see video on
http://fandom.wikia.com/video
###### AdGuard scripts solution (recject advertisement cookies): - `fandom.com#%#document.cookie = "tracking-opt-in-status=rejected";` cookies_specific.txt[#L1720](https://github.com/AdguardTeam/AdguardFilters/blob/45af1b823f56b3e90c82007f2362442261111732/AnnoyancesFilter/sections/cookies_specific.txt#L1720) - `wikia.com#%#document.cookie = "tracking-opt-in-status=rejected";` cookies_specific.txt[#L1752](https://github.com/AdguardTeam/AdguardFilters/blob/45af1b823f56b3e90c82007f2362442261111732/AnnoyancesFilter/sections/cookies_specific.txt#L1720) ###### Script click solution (accept advertisement cookies): ```js if(url.match(/wikia.com/) || url.match(/fandom.com/)) { document.addEventListener("DOMContentLoaded", function(event) { var btnYes = document.body.querySelector('[data-tracking-opt-in-accept="true"]'); if (btnYes) { btnYes.click(); } }); } ```
Reproduction Steps (Optional if trivial)
Open with European IP and should see cookies / advertisement wall
Anything else you believe to be useful (Optional)
Environment (Required)
Your filter lists (Required)
Nano Adblocker default + uBO Annoyance + Nano Annoyance + Nano Defender Integration
Your custom filters (Required if you have any)
both work:
fandom.wikia.com,www.wikia.com##+js(cookie-remover.js, Geo)
but this no works on other subdomains
wikia.com
/fandom.com