Rainbow Txt Bookmarklet

Rainbowifys all the txt on a page.

Source (tech.reboot.pro)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3A%28function%28%29%7Bfunction%2520Rainbow%28c%29%7Bthis.o%3D%7Bn%3A0%2Cp%3Afalse%2Cc%3A%5B%22FF0000%22%2C%22FF7F00%22%2C%22FFFF00%22%2C%2200FF00%22%2C%220000FF%22%2C%226600FF%22%2C%228B00FF%22%5D%7D%3Bthis.byTag%3Dfunction%28a%29%7Bvar%2520b%3Ddocument.getElementsByTagName%28a%29%2Co%3Dthis.o%3Bfor%28var%2520i%3D0%3Bi%3Cb.length%3Bi++%29%7Bb%5Bi%5D.innerHTML%3Db%5Bi%5D.innerHTML.replace%28/./g%2Cfunction%28x%29%7Bif%28x%3D%3D%22%3C%22%29%7Bo.p%3Dtrue%7Dif%28o.p%3D%3Dfalse%26%26x%21%3D%3D%22%2520%22%29%7Bif%28o.n%3E5%29%7Bo.n%3D0%7Delse%7Bo.n+%3D1%7Dreturn%27%3Cfont%2520color%3D%22%27+o.c%5Bo.n%5D+%27%22%3E%27+x+%27%3C/font%3E%27%7Delse%7Bif%28x%3D%3D%22%3E%22%29%7Bo.p%3Dfalse%7Dreturn%2520x%7D%7D%29%7D%7D%3Bthis.byTags%3Dfunction%28a%29%7Bfor%28var%2520i%2520in%2520a%29%7Bthis.byTag%28a%5Bi%5D%29%7D%7D%3B%28c%3FbyTags%28c%29%3AbyTags%28%5B%27span%27%2C%27div%27%2C%27p%27%2C%27pre%27%5D%29%29%7DRainbow%28%29%3B%7D%29%28%29%3B


Rate it:


Tags:

Comments

Comments so far. Add yours.