Script Summary: Block unwanted sites from your searches (Google, Startpage.com, DuckDuckGo). v1.5.9 2013-10-20 For Firefox+Greasemonkey or Chrome+Tampermonkey.
Copyright: Copyright 2013 Jefferson Scher
License: CC BY http://creativecommons.org/licenses/by/3.0/
|What's New in Version 1.5.0-1.5.9:|
All excludes have been removed from the script temporarily due to performance issues with GreaseMonkey 1.6. More info: http://userscripts.org/topics/121603
Full Revision History: Refer to CHANGE LOG in Discussions
Easily Hide Unwanted Domains in Google Results
Want to filter out some useless, spammy or offensive sites from Google search results? Just click "block" to reduce a site's hits to a one-line notation, or hide it completely. No typing required.
Firefox with Greasemonkey: Requires Firefox 3.5 or newer. Tested on Firefox 16, on Windows 7. Limited testing with GoogleMonkeyR and AutoPager. Google Chrome with Tampermonkey: Lightly tested on Chrome 22, on Windows 7. Please report problems in the "Discussions" tab for this script.
Disclaimer: Google search is a very complex application, so there is no guarantee that this script will work for you. The author is not responsible for you missing a result you might have liked to see, or other malfunction of the script. Use at your own risk.
Click for downloadable/printable PDF version of this page (as of version 1.5.0).
How to Block and Unblock Sites
After installation, a "block" button should appear next to the title of each result. Screen shot #1:
Click the block button to block results from that site. A small dialog will appear. Screen shot #2:
Simply click Block Site to block the site immediately.
In most cases, you also have an extra choice: to block the full site domain, and a domain that will match multiple addresses on that domain (e.g., www., download., etc.). Pick whatever you think will work best for you.
The +site and -site buttons will alter your current query, but not add the site to the block list.
After a domain is added to the block list, the results should refresh and display a one line notice about that suppressed hit. Screen shot #4:
If you never want to see notices for this site, instead of clicking Block Site, click Perma-ban in the block dialog. Or just click the notice and the result will redisplay on a shaded background. You then can "Unblock" the site or move it to the "Perma-ban" list of sites you never want to see. Screen shot #5:
One-click blocking. If you find two clicks to be one click too many, you can turn on one-click blocking in the Block dialog or on the Home tab of the Management pane. See One-Click Blocking - How to - FAQ for more information.
Managing Script Options
To remove hit notices, or to stop blocking some sites, you can use the management pane. On the right edge of the page when you are displaying search results, look for and click the Manage Hiding button. (You can hide this button if you like. In that case, click any block button to call up the Management Pane.) Screen shot #6:
The management pane has a wide and growing variety of functions. You probably won't need most of them, but just in case:
- Eliminate the notices if you don't like them. Restore them if you miss them. (Home Tab)
- Move domains between the regular block list and the Perma-ban list. (Block and Perma-ban Tabs)
- Remove domains from the lists. (Block and Perma-ban Tabs)
- Sort and export lists. (Block and Perma-ban Tabs)
- Change the way domains are added to the lists. (Options Tab)
- Change the display of various buttons. (Options Tab)
- Turn off support for Instant Search, AJAX search or AutoPager to improve performance if you have disabled these features. (Options Tab)
Screen shot #7 (notices displayed):
Clearing (unchecking) the Show notices checkbox removes the suppressed hit notices. The pane stays open while the results are updated so you continue to manage the script. Screen shot #8 (notices hidden):
To move domains between lists or to remove them from the lists, click the domain to cycle through your options. When you're ready to complete your edits, click Save Lists to purge the domains marked for deletion. All changes on both lists are saved at the same time, so you might want to click back and forth between the Block and Perma-ban tabs to review your changes before saving. There is NO undo. Screen shot #9:
The Options tab of the management pane lets you edit some of the script's behaviors and buttons. Screen shots #10, #11, and #12:
- You can change the way domains are added to the list. By default, they are added at the end. You can add them at the top, or keep the lists sorted alphabetically. Screen shot #13:
- You can change the default pre-selected domain in the block dialog. If you are an aggressive blocker and want to block as much as possible from a site, you may want to always pre-select the partial domain. Screen shot #14:
- If there are too many buttons for you, you can: remove the Manage Hiding button (call up the management pane by clicking any block button) or remove the block buttons (they will display when you open the management pane). You also can have the block buttons appear only when you mouse over a hit.
- Turn off full-time monitoring if you have disabled instant/AJAX search and do not use AutoPager.
- Change the captions on selected buttons.
List Management Utilities
This feature is still under construction, but some of it is ready now.
Click the List Util button to display additional commands for working with your block list. Screen shot #15:
- Export displays a copy of your block list in a form you can copy and paste, so you can back it up, copy it to another computer, or send it to a friend. (Can't guarantee it will pass through a spam filter!). Screen shot #16:
- Import attempts to add domains to your block list. So that you can recover from possible list corruption, please use the Export feature to retrieve your current list so you can back it up in a document. Screen shot #17:
- Sort alphabetizes your block list. To keep your lists sorted automatically as you add domains, visit the Options tab and adjust the first setting.
- De-Duplicate removes unnecessary domains from your block list. Probably most useful after an import, especially if you test by importing a copy of your current list.
- Un-www removes the www from the beginnings of domains on your block list so they match all subdomains (e.g., www, blog, etc.). After this, you might want to de-duplicate. Note: In the unlikely event that you have blocked www.com (or www.jp, etc.), the Un-www feature will render those listings useless; if you blocked a domain similar to www.com.mx, then using Un-www may result in other com.mx sites being blocked. Hopefully this can be fixed in a future version.
Problems, Requests, and Miscellaneous
To see whether I am aware of a problem, or to add one, refer to KNOWN ISSUES - WISH LIST in Discussions. Of course, feel free to start a new topic.
This site blocking script was inspired by a request on the discussion forum Eileen's Lounge (see Greasemonkey userscript to hide Google results by domain).