this post was submitted on 18 May 2024
27 points (90.9% liked)

techsupport

2455 readers
5 users here now

The Lemmy community will help you with your tech problems and questions about anything here. Do not be shy, we will try to help you.

If something works or if you find a solution to your problem let us know it will be greatly apreciated.

Rules: instance rules + stay on topic

Partnered communities:

You Should Know

Reddit

Software gore

Recommendations

founded 1 year ago
MODERATORS
 

I'm not sure if this is a good place to ask this, but I couldnt find any active uBlock Origin -communities here. Please delete if this is inappropriate to ask.

This blog has an annoying dark mode toggle, that keeps following the page as you scroll. I have tried to block it by uBlock Origins picker tool, but it only allows selecting the little flame image, creating a filter:

"acoup.blog##.darkmode-toggle"

Yet there remains a partly transparent, unselectable round artifact after this, that keeps following the page like the toggle.

I know I can disable javascript on the page to make it go away, but its tedious to do it every time.

Any tips how to block that annoying little toggle?

top 10 comments
sorted by: hot top controversial new old
[–] 0v0@sopuli.xyz 9 points 5 months ago (1 children)

Also add acoup.blog##.darkmode-layer to your filters.

[–] Kallioapina@lemm.ee 2 points 5 months ago* (last edited 5 months ago) (1 children)

Thank you 0v0, that did it!

For the future in case there are similar cases, is there a way to select that with the picker tool or is that just something you have to know about?

[–] 0v0@sopuli.xyz 3 points 5 months ago

This element is never generated as a candidate in the picker, probably a quirk of this specific site. I just looked at the DOM and saw this related element next to the dark mode button.

[–] boredsquirrel@slrpnk.net 1 points 5 months ago (1 children)

Open the picker and select the thing.

Then if you see an overlay that covers it it will be removed. But there is a list of elements in that area, look to make the filter as unspecific-specific as possible ("interactive annoying button" instead of "button-xd12440292-image1232.png") and as large as possible without removing stuff.

If you removed too much, go to settings and custom filters, delete the line and try again

[–] Kallioapina@lemm.ee 2 points 5 months ago* (last edited 5 months ago) (1 children)

It simply wont allow to select the thing and it does not appear at the list, at all.

Yet it does leave this transparent artifact behind.

[–] boredsquirrel@slrpnk.net 2 points 5 months ago* (last edited 5 months ago) (1 children)

! 2024-05-18 https://acoup.blog
acoup.blog##.darkmode-toggle
[–] boredsquirrel@slrpnk.net 2 points 5 months ago (1 children)

What who would downvote this I literally gave the solution.

[–] Kallioapina@lemm.ee 1 points 5 months ago (1 children)

I thank you, but your solution does not work, which you would know if you read the post.

[–] boredsquirrel@slrpnk.net 1 points 5 months ago* (last edited 5 months ago)

True, interesting.

I use "dark background and light text" where this doesnt appear

[–] BlastboomStrice@mander.xyz 1 points 5 months ago

You could either try going to uBlock and turning on all the filters (apart from unecessary region/language filters) or use this PopUpOff plugin. Popupoff is good, but may break some sites. I have set it to off and ~only use it to specific sites.