Highlight Favorite Domains In Search Results - gHacks Tech News

Highlight Favorite Domains In Search Results

When I search on the Internet in search engines like Google or Bing I tend to favor results from domains that I trust. If I had to chose between a post on Windows7news.com and a Blogger domain I would open the Windows 7 site first since I know it and use it regularly.

Locate Multiple Domains in Search Results is a free userscript that can visualize results from those domains in the Google, Yahoo and Bing search engines.

The script unfortunately requires manual editing of its code to add domains to it but more about that later.

highlight domains search

The userscript basically allows the configuration of an unlimited number of sites that should be highlighted in the three popular search engines. Each site can get its own color code for additional means of visualizing them. It is of course also possible to use one color for all sites, or use colors for specific site groups.

The userscript needs to be edited before it becomes useful. This is done differently depending on the browser and its version. One option is to save the userscript to the local computer, instead of installing it right away, to edit it there which is more comfortable than editing it in the browser window.

Users who want to do that find the source code on this page. Simply copy and paste it into a plain text file on your computer first as it is easier that way for editing purpose.

Locate the following code near the top of the source code

var sites = [
['devseo.co.uk', '#C2D9EF'],
['syst3m32.co.uk', '#98292B'],
['myspace.com', '#CCC']

each site is added in the format ['domain name', 'color'],

To add new domain names edit the existing ones or add new ones. Make sure you keep the format exactly as it is, as it would break the script otherwise. To add ghacks as the first site you would change the code this way

var sites = [
['ghacks.net', '#C2D9EF'],
['syst3m32.co.uk', '#98292B'],
['myspace.com', '#CCC']

You can check out a HTML color code chart here if you need to. Simply add all your favorite sites this way and save the file in the end as userscript.js.

Then drag and drop it into the browser window where it should be automatically picked up. Firefox users need the Greasemonkey extension for this though. (via Make use of)

  • We need your help

    Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

    We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.

    If you like our content, and would like to help, please consider making a contribution:


    There are no comments on this post yet, be the first one to share your thoughts!

    Leave a Reply