// ==UserScript== // @name Locate Multiple Domains in Search Results // @filename multiple-domains.user.js // @author Alex Hall // @homepage http://www.devseo.co.uk // @namespace http://www.devseo.co.uk/blog/view/greasemonkey-script // @version 1.0 // @description Locate specific domains easily within the results of a Google, Yahoo!, or Bing Search // @include http://www.google.com/search* // @include http://google.com/search* // @include http://www.google.co.uk/search* // @include http://google.co.uk/search* // @include http://uk.search.yahoo.com/search* // @include http://search.yahoo.com/* // @include http://bing.com/search* // @include http://www.bing.com/search* // ==/UserScript== //***********************BEGIN CONFIGURATION**********************// // Set the array of sites you wish to locate (without www is best) - syntax [['mydomain.com', '#color'], ['mydomain2.com', '#color']]; // Set the color variable to the background color you wish to use to highlight your domain (defaults to light red) var sites = [ ['devseo.co.uk', '#C2D9EF'], ['syst3m32.co.uk', '#98292B'], ['myspace.com', '#CCC'] ]; var siteLen = sites.length; var numNot = 0; //************************END CONFIGURATION***********************// //*******************DO NOT EDIT PAST THIS LINE*******************// //****************UNLESS YOU KNOW WHAT YOU'RE DOING***************// var all_links = document.getElementsByTagName('a'); var linkLen = all_links.length; if (location.hostname.indexOf("google.com")!=-1) { for (i=0; i