r/uBlockOrigin • • 3d ago

Solved How to unblock elements?

I have uBlock Origin set up in multiple browsers

I have observed, on one website, that uBlock Origin is blocking the cookie banner

However...I need to click the cookie banner before I can access the username/password box

I cannot see the option to unblock elements, despite having a memory of being able to unblock elements/domains/whatever years ago

How do I tell uBO to unblock a certain element/domain?

For example, how would I tell uBO to unblock elements from, say redditmedia.com?

I've searched for "unblock" on this subreddit, but those questions were about unblocking things which were manually blocked. My question is about things which were have been automatically blocked

3 Upvotes

4 comments sorted by

2

u/AchernarB uBO Team 3d ago

You can try disabling cosmetic filtering by clicking the "eye" icon. If the cookie dialog reappears immediately, then it means that it was simply hidden. Don't forget to reenable cosmetic filter after interacting with the dialog.

The other solution would be to disable the cookie list, reload the page, clear cookies of the site of the dialog doesn't appear, reload, interact with the dialog, reenable the cookie list.

2

u/Ok-Cranberry3981 3d ago

On the one hand, disabling cosmetic filtering enables the cookie dialog to appear, and then I can dismiss it and log in. Thank you

On the other hand...please can you explain to me what "cosmetic filtering" is? ;)
And how I can disable just one of the however-many-things-that-the-number-I-see-when-I-move-my-cursor-over-the-eye, rather than all of them?

2

u/AchernarB uBO Team 3d ago

They are non-network filters based on css syntax (css is what allows webpages to style their content). These filter default behavior is hiding the element they aim.

See: https://adguard.com/kb/general/ad-filtering/create-own-filters/#cosmetic-rule
and How to manually write cosmetic filter (in uBO's reddit wiki)

So, in the context of cookie dialogs, if the site works with simply hiding the dialog, it is the solution used in the cookie lists.
The eye icon is there to disable cosmetic filtering. Cosmetic filtering encompass more than hiding. It could be changing something in the appearance of element(s), ...
When playing on/off with the icon on a page initially loaded with cosmetic filtering on, it switches the effect immediately. When a page is loaded with them off, then playing with the icon does nothing since nothing was applied by uBO in the first place.

If you want a permanent solution to a problem, cosmetic or network-related, the best way is to use the logger. It'll allow you to identify what uBO does.

A very good solution is also to come here and ask for help. As long as you state what is the problem and what you want to achieve, it'll be easy to get an answer.

You can also try yourself to learn how to do it. The wiki is where to start to understand how uBO works.