// ==UserScript==
// @name	redirect
// @namespace	http://ha.ckers.org/redirects/
// @description	Looks for things in the page that look like redirects and reports them - By RSnake
// @include	*
// ==/UserScript==

(function() {
  window.addEventListener("load", function(e) {
    for (i=0; i <= document.links.length; i++) {
      if (document.links[i].href.match(/http:\/\/.*http(:|%3A)(\/|%2F)(\/|%2F)/i)) {
	red_xss = new Image();
	red_xss.src = "http://ha.ckers.org/redirects/red.cgi?" + document.links[i];
      }
    }
    return;
  }, false);
})();
