// ==UserScript==
// @name            Nofollow highlight
// @namespace       http://bubble.ro
// @description     Colors links with nofollow in pink
// @include         *
// ==/UserScript==
//
// This is a Greasemonkey user script http://greasemonkey.mozdev.org/
// author: Indy - http://blog.bubble.ro
// 
// Based on original nofollowdisplay.user.js (author unknown). Improved to work with multiple rel tags (e.g. rel="external nofollow").
//
// Downloaded from http://blog.bubble.ro
//

(function () {

	  
    var candidates = document.getElementsByTagName("a");

    for (var cand = null, i = 0; (cand = candidates[i]); i++) 
    {
    	var relinfo = cand.getAttribute("rel");
    	
       if (relinfo && relinfo.search(/nofollow/i) != -1)
        {
        	theStyle = cand.getAttribute("style");
        	if(theStyle == null)
        		theStyle = "";
        	else 
        		theStyle += ";";
        	theStyle += "background-color: pink";
        	cand.setAttribute("style",theStyle);
        }
    }

})();