←back to thread

582 points SweetSoftPillow | 3 comments | | HN request time: 0.001s | source
Show context
baggachipz ◴[] No.45668535[source]
Since there are a handful (maybe dozens) of companies who implement this popup feature as a service (e.g. CookieYes), a browser plugin to automate the "no to all" could be handy. That is, the plugin would know the provider and navigate the labyrinth of settings to disable all of them.
replies(2): >>45668601 #>>45668606 #
jraph ◴[] No.45668606[source]
uBlock Origin's cookie banner lists do this.
replies(1): >>45668628 #
baggachipz ◴[] No.45668628[source]
Ah, yeah, I suppose just blocking the domains of those cookie services would take care of it.
replies(1): >>45668666 #
jraph ◴[] No.45668666[source]
That's not always enough, sometimes you need some code simulating the "deny all" clicks or tweaking CSS class lists on the body and html elements.

Otherwise, you might end up with some unscrollable page because for instance there's a CSS rule that blocks scrolling when the modal is there and restores it when the modal closes and this handling is unfortunately done in JS.

replies(1): >>45669161 #
1. baggachipz ◴[] No.45669161[source]
Does uBO take care of this?
replies(1): >>45669179 #
2. jraph ◴[] No.45669179[source]
There are occasional breakages, but yes.

edit: documentation:

https://github.com/gorhill/uBlock/wiki/Static-filter-syntax#...

https://github.com/gorhill/uBlock/wiki/Resources-Library#tru...

It's actually given in example:

> example.com##+js(trusted-click-element, button.reject-all)

replies(1): >>45669478 #
3. baggachipz ◴[] No.45669478[source]
Great, thanks for the information. I'm guessing uBO lite can't do this, but then again I doubt anything using manifest V3 could.