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.
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 :)
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
Honestly, at this point Google themselves should be offering this.
Not only would it keep people coming back for actually valuable results, but it would feed them with an up-to-the minute listing of sites people don’t trust.
Even better, let people subscribe to block lists, like ad blockers do. Instead of putting together my own list of shit sites (which will be perpetually out of date), I'd be happy to outsource that to some group I trust.
It's an enhancement issue I've already added to the repository on Github. Planning to roll it out in the next update :) Honestly, I didn't know how big of a pain it was to a lot of people until now.
Approximately 2011–2018 [1]. For most of that time it existed as a browser extension similar to this one, but it started off as a first-class feature of the site. [2]
As someone who just graduated college and found geeksforgeeks, cplusplusreference, and w3schools quite helpful for Algorithms, c++ Syntax, and learning some basic web design stuff (respectively).....what should I be using? I see a lot of people hating on them....but they all seemed alright to me. Is it just because they are too basic? (I used a lot of these things for just learning basic things I either forgot the syntax for or needed a quick introduction).
The complaints about these sites is usually that (a) they're literally wrong just often enough that you don't want to rely on them, which defeats the point of a reference, or (b) they try to "teach" things that are not recommended best practices. With w3schools in particular, there's the added "ick" that they try very hard to make it look like they're an offical W3C source, and sell scammy certifications based on that confusion. They also provided (past tense, because I haven't looked at it in years) some very questionable practices with PHP that would lead to trivially insecure code.
cppreference.com is what I usually use for C++. It's well organized, well cross-linked, and uses exact standards language whenever possible. It's also very good about showing the differences between successive versions of the C++ standard libraries, which is invaluable if you're working with any sort of legacy code and wondering why something looks funny. For HTML5/JS, MDN (Mozilla) was my default when I did front-end, but it's been a little while. I'm sure Mozilla is still great, but there might also be something easier to traverse.
Ahhhh.....you know what, now that I think about it, I remember last semester for a class I had to do a bunch of PHP + SQL for a Backend (my first time really using either). I basically just googled a bunch of stuff and I ended up just writing the queries in as strings basically because that's what I saw on a site (very possibly one of the ones in question).
I felt it was wrong because I was concerned about SQL injection, but my professor really didn't care about security so I wasn't too too concerned. Later on my professor mentioned that pre-compiled statements (I think that's what they are called) and I facepalmed because that would have been way more secure and been 5x easier anyways. So yea, I guess they still are giving bad advice.
For me, the information tends to be incomplete that it’s hard to use as a reference, which is often why I am searching in the first place. For example look at JavaScript Array reduce function in w3schools [0] and MDN [1] and try to decide the exact result when you pass only one argument to the function. MDN is very precise about the behavior and w3schools basically forces you to test and see.
The're basic but that's not the real problem. Plenty of articles are basic but also offer unique perspective or insight. The real problem is that these articles are often uninspired and seemingly only written for the purpose of writing an article. Full of keywords to maximize google search potential. And then your technical search gets bogged down by these SEO friendly articles and you can't find what you need.
Its a lot worse for python than, say, kotlin. That was one of the biggest things I noticed when changing languages recently.
Comments (308) 66 threads
Earlier commentsI'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.
And feel free to contribute on Github if you like :)
[1] https://addons.mozilla.org/en-US/firefox/addon/wiper/
Continue this thread — 4 replies
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
https://www.google.com/search?q=test+-site%3Aa1.com+-site%3A...
https://chrome.google.com/webstore/detail/google-search-bloc...
Not only would it keep people coming back for actually valuable results, but it would feed them with an up-to-the minute listing of sites people don’t trust.
[1]: https://github.com/codyogden/killedbygoogle/issues/674
[2]: https://googleblog.blogspot.com/2011/03/hide-sites-to-find-m...
Continue this thread — 1 reply
I'd especially like to know for c++.
cppreference.com is what I usually use for C++. It's well organized, well cross-linked, and uses exact standards language whenever possible. It's also very good about showing the differences between successive versions of the C++ standard libraries, which is invaluable if you're working with any sort of legacy code and wondering why something looks funny.
For HTML5/JS, MDN (Mozilla) was my default when I did front-end, but it's been a little while. I'm sure Mozilla is still great, but there might also be something easier to traverse.
I felt it was wrong because I was concerned about SQL injection, but my professor really didn't care about security so I wasn't too too concerned. Later on my professor mentioned that pre-compiled statements (I think that's what they are called) and I facepalmed because that would have been way more secure and been 5x easier anyways.
So yea, I guess they still are giving bad advice.
[0] https://www.w3schools.com/jsref/jsref_reduce.asp [1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Its a lot worse for python than, say, kotlin. That was one of the biggest things I noticed when changing languages recently.
It ended up being removed from the core product and replaced by an extension which they abandoned.
It's currently community maintained: https://chrome.google.com/webstore/detail/personal-blocklist...
All comments shown.
Couldn't load more comments. Check your connection and try again.