iorate / ublacklist

Blocks specific sites from appearing in Google search results
https://iorate.github.io/ublacklist/
MIT License
5.62k stars 288 forks source link

Can't block specifically for DDG image search #495

Open brianadragon opened 4 months ago

brianadragon commented 4 months ago

I'm trying to block YouTube only from image searches in DuckDuckGo in Chrome. I've tried: $category = "images" & host = "youtube.com" $site="duckduckgo" & host="youtube.com" ://.youtube.com/* @if($category="images") None of these work. documentation and examples are pretty lacking, so I could be doing it wrong, or it could be not working. I'd appreciate some help. (This could really benefit from having a dedicated subreddit.)

brianadragon commented 4 months ago

It turns out that ://.youtube.com/* @if($category="images") works, the problem was that it won't let me highlight and block at the same time. How can I make it do both? When I unhide results I want to have them color coded so I can know at a glance what I'm looking for.

iorate commented 3 months ago

host of YouTube is typically www.youtube.com, not youtube.com.

$category = "images" & host = "www.youtube.com"
# or
$category = "images" & host $= ".youtube.com"
# or
*://*.youtube.com/* @if($category = "images")

To block YouTube on image search and highlight it on other searches,

*://*.youtube.com/*
@1 *://*.youtube.com/* @if(! $category = "images")
brianadragon commented 3 months ago

That highlights it in other searches, but it's all one color when blocked on the images page. Is it not possible to have some blocked items the default color and some the specified color?