// ==UserScript== // @name Locate Domain in Search Results // @filename locate_domain_in_search_.user.js // @author Mark Stoecker // @homepage http://www.poundbangwhack.com // @namespace http://www.poundbangwhack.com/greasemonkey/highlight-domain-in-search-results/ // @version 1.1 // @description Locate a specific domain 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== // Changes // 1.1 - // Multiple domain feature added by Alex Hall - http://www.devseo.co.uk // Included functionality for google.co.uk and uk.search.yahoo.com - Added by Alex Hall //***********************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 = [['poundbangwhack.com', '#98292B'], ['myspace.com', '#CCC'], ['devseo.co.uk', '#C2D9EF']]; var siteLen = sites.length; //var color='#fcc'; //************************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