Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


And then a handful of companies can offer a service to let advertisers punch through the plugins. And then another plugin could block that!

Thing is you’re probably right. The modern web is made of middlemen inserting themselves into user experiences to divert and extract revenue from the primary stream between consumer and producer. There’s always room for another layer.


uBlock Origin's cookie banner lists do this.


Ah, yeah, I suppose just blocking the domains of those cookie services would take care of it.


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.


Does uBO take care of this?


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)


Great, thanks for the information. I'm guessing uBO lite can't do this, but then again I doubt anything using manifest V3 could.


uBO lite actually can do this.


There's only two kinds of cookie banner lists for uBO: "reject all" or "I don't care about cookies", nothing in between.


I'm curious: what else would you like to have, and what could uBlock Origin would do better than actually using the cookie modal in this case?


hide the cookie modal and suppress the storage of cookies by origin-variable key combination




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: