// ==UserScript==
// @name alltheweb.com - Show real links to images
// @author Scipio 
// @namespace http://home.wanadoo.nl/sipke.reina/opera/index.html 
// @version 1.0
// @description  Makes image links on AllTheWeb search show the correct
//			link address.
// @ujs:category site: enhancements
// @ujs:published 2005-10-25 23:00
// @ujs:modified 2005-10-25 23:05
// @ujs:documentation http://userjs.org/scripts/site/enhancements/alltheweb-real-image-links 
// @ujs:download http://userjs.org/scripts/download/site/enhancements/alltheweb-real-image-links.js
// ==/UserScript==


/* 
 * This script is granted to the Public Domain.
 */

if (window.location.href.match(/^http:\/\/www.alltheweb.com\/search.+cat=img/)) {
	window.opera.addEventListener(
		'AfterEventListener.load',
	    	function(){
			var s = document.getElementsByTagName('a');
			for (var i=0, si; si=s[i]; i++){
				if (si.className=='thumbnail'){
					si.href=si.getAttribute('onmouseover').replace(/self\.status='(.+)';return true/,'$1');
				}
			}
		}, 
	    	false); 
}