Lurker News

Comments (308) 66 threads

Show all comments

Showing thread 5 of 66

nabakin4 replies#
This is a great idea! I don't know why I hadn't thought of it beforehand! I looked through your code and it looks like you replace the HTML of the page. Have you considered appending "-site: -site:...etc" to the end of the search query instead? This way, the user still gets a full page of relevant search results.

I'm not sure how flexible extensions are, but maybe you could intercept all request attempts to google search, append the blacklisted URLs to the search query, then hide them on the loaded page so that the user doesn't have to see the long list of appended, blacklisted URLs.

davehcker1 reply#
Thanks. No that has the potential issue of assuming that results from your blacklist are complete crap. That'd be equivalent of removing the search results based on the blacklist entirely (right?). Based on a comment here on HN as well, I think that's not necessarily a good idea. You don't know what you don't know, so may be a blacklisted website may return a valid result (unlikely but probable, so I'm letting that assumption be there).

And feel free to contribute on Github if you like :)

nabakin1 reply#
It removes all blacklisted URLs from the search results. Isn't that what your extension does?

Continue this thread — 4 replies

monadic2#
In my experience the site filters are usually limited by query length.
vanderZwan1 reply#
> "-site: -site:...etc"

I actually have a keyworded URL in my Firefox bookmarks for that, IIRC there is a limit (a very low one if you really want to get rid of all the spam options) for how many sites you can block this way

nabakin#
Oh cool! Have you figured out a way to avoid going over the max query length?