Quantcast
Channel: Javascript – Some Dodgy Blog
Viewing all articles
Browse latest Browse all 6

Grease Monkey script for highlighting results in google.

$
0
0

This Javascript Greasemonkey script will highlight a domain name in google results pages in both image search and standard search. This is of course freeware.

Greasemonkey Google Highlighter

// ==UserScript==
// @name           Google Highlighter
// @namespace      dodgy_gr
// @version        0.0.1
// @description    Google Highlighter
// @include        http://www.google.*/search?*
// @include        http://www.google.*/images?*
// @history        First Release. Modify domainSearch to the url your interested in.
// ==/UserScript==

//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//MODIFY THIS LINE TO YOUR DOMAIN

var domainSearch = /somedodgywebsite/;

//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

//getElementsByCLassName by Stephen Chapman, http://javascript.about.com/library/bldom08.htm
document.getElementsByClassName = function(cl) {
	var retnode = [];
	var myclass = new RegExp('\\b'+cl+'\\b');
	var elem = this.getElementsByTagName('*');
	for (var i = 0; i 

Share


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images