// ==UserScript==
// @name          External Link & Phishing Highlighter
// @namespace     http://lucideer.com/userscripts/
// @description   Highlights external links on any page with a helpful icon so you always know when you're about to leave a page, and have some idea of where you're going.
// @include       *
// ==/UserScript==

(function(){
//begin prefs//
var iw = 16;
//end prefs//
var B=document.getElementsByTagName("a");
for(var A=0;A<B.length;A++) {
  if(B[A].href&&(!B[A].href.match(document.domain+'|@|javascript:|about:|opera:|widget:|resource:|mailto:|file:'))) {
    var C=B[A].href.split("/");
    B[A].style.background="url("+C[0]+"//"+C[2]+"/favicon.ico) center left no-repeat";
    B[A].style.paddingLeft=iw+"px";
    }
  }
})();
