// ==UserScript==
// @name Let me see
// @author Ilya Birman 
// @namespace http://ilyabirman.ru/ 
// @version 1.1
// @description  Replaces empty or undefined image attributes with "#"
//			to allow you to access the right-click image
//			context menu.
// @ujs:category browser: enhancements
// @ujs:published 2006-03-22 08:55
// @ujs:modified 2006-03-22 08:36
// @ujs:documentation http://userjs.org/scripts/browser/enhancements/add-alt-text 
// @ujs:download http://userjs.org/scripts/download/browser/enhancements/add-alt-text.js 
// @ujs:download.gm http://userjs.org/scripts/download/browser/enhancements/add-alt-text.user.js
// ==/UserScript==


/* 
 * public domain
 */

window.addEventListener('load',function(e){
	var is = document.getElementsByTagName ('img');
	for (var i in is)
		 if (is[i].src) {
			if (!is[i].getAttribute ('alt'))
				is[i].setAttribute ('alt', '#')
			if (is[i].src.indexOf ('http://' +location.hostname) != 0)
				is[i].style.background = '#f99'
		}
},true);
