laylavish / uBlockOrigin-HUGE-AI-Blocklist

A huge blocklist of sites that contain AI generated content for uBlock Origin & uBlacklist.
2.12k stars 90 forks source link

`opacity: 0` versus the default `display: none`? #4

Open eishiya opened 7 months ago

eishiya commented 7 months ago

I've been enjoying using the list so far, now that it works on DDG via uBO :D! I manually added most but not all of the nuclear list to my custom filters, and took the opportunity to experiment with the filters themselves. Removing the :style(opacity:0.00!important;) part causes the default behaviour (display: none) to take effect, which I've found more convenient, especially for searches with a lot of rubbish results. While the change is a simple matter of search and replace for a manually updated list, I can't really do the same for the main list pulled from the repo.

If it's not too much trouble, would it be possible to have versions of the lists provided that don't include the custom style, allowing uBO to completely hide those elements instead? This way, people can choose the one best suited to their preference or search engine (in my testing, DDG looked good without the custom style, but Google looked messy).

Comparison on DDG with and without :style(opacity:0.00!important;): with: image without (display:none is applied by default) image The image results in these aren't completely the same, DDG served slightly different results every time I tried ): You'll have to trust me that a bunch of elements are hidden in the second one xP

Speaking of :style(opacity:0.00!important;), why 0.00 instead of just 0?

Unrelated, but not worthy of an issue I think: the nuclear deviantArt, etsy, etc filters are very likely to break other sites as artists often link these in their social media profiles, on their websites, etc, and the filters hide the entire containing div. Perhaps the nuclear list should be amended to specify specific search engines, as was done for dreamup recently? Also, pinterest has a load of regional domains in addition to .com. In my custom filter, I changed it to pinterest., which captures those, but is still fairly unlikely to match any non-Pinterest sites.

laylavish commented 7 months ago

The thing is, without the custom styling, it breaks Google Search if there are too many queries that include AI generated content. See the video below: https://github.com/laylavish/uBlockOrigin-HUGE-AI-Blocklist/assets/128162304/34e944a2-d3fd-459c-bf7d-2db877b16330

From my testing, DDG & Bing both handle uBlock display: none just fine, just not Google Search weirdly. That's why I opted for the styling, as it fixes Google Search, while also hiding AI away.

If you want to block sites on DDG with display:none, you can try uBlacklist which handles blocking in a similar way. The only difference between the potential uBO display:none list and uBlacklist is the procedural filters currently (working on that for uBlacklist too).

As for the 0.00 instead of just 0, I was experimenting with just lowering the offending sites' opacity to a low value, say 0.05, so you would know which one is AI and what is not (if that makes any sense). Instead, I just went with 0 as the default, since most people (myself included) just want them hidden.

Lastly, as you probably noticed, I reverted the change of just hiding the entire div in favor of specifying domains that it would work on (eg. DDG, Google, Bing). Solves a lot of the issues before (and it just makes more sense to me imo). So yeah, now everything is geared to specific search engines. And, yeah i'll add the regional domains of Pinterest too!