uBlockOrigin-HUGE-AI-Blocklist icon indicating copy to clipboard operation
uBlockOrigin-HUGE-AI-Blocklist copied to clipboard

Doesn't quite do it, so I tinkered with it myself

Open Catman-232 opened this issue 6 months ago • 5 comments

I don't think it neccesarily matters but domains can be written with a wildcard to be an enitity, so you can use google.* to catch all google alt domains, like google.co.uk for me, though the filter still was working anyway.

On Google it leaves a blank box where the result was and it seems that's because :upward("div") is only getting the div elements above what looks to be two separate a elements, but the actual result box itself is one more above that. you can use :upward(2) to grab that. Using :remove() instead of :style(opacity:0.00!important;) will delete that element from the page instantly and Google handles that very well since it always tries to fill the width with any result div elements that are present, and in the case of your example search "anime girl artwork" it does not break the page loading more results when scrolling down. I don't use the other two sites so I don't know if this method would work for them.

While tinkering I also noticed that the div element for the result box itself does contain an attribute that is the same as the href of the a elements, targetting that would mean only matching one thing per filter and you could remove it directly without using upward. Which I believe would look like ##div[data-lpage*="garbagesite"]:remove(). It works for me and even kills a freepik ai result that was somehow showing up.

This search is a pretty good way to find even more AI sites that are not in the list yet such as "wallhaven.cc" (Not exclusively AI but allows it and appears to mostly just be a rehosting site of little worth with lacking sources) and the ironically named "anime-girl.com", hah! So right now I'm using a clone of the main list that's just every domain formatted to google.*##div[data-lpage*="trash"]:remove().

Feel free to tell me if and why this method isn't ideal for reasons I do not know, or use it yourself, I don't mind either way.

Catman-232 avatar Sep 03 '24 15:09 Catman-232