Psychedelia Bookmarklet

Posted on January 11, 2006

Albert Hoffman, the "father" of LSD, turns 100 today, and to celebrate I've whipped up a javascript bookmarklet that will turn any drab website into a groovy riot of colour.

Drag the link below to your bookmark bar, navigate to your choosen page, click the bookmarklet, sit back and wait for the effect to kick in...

psychedelia (to try it on this page, just click the link.)

The function iterates through every child node of the "body" element. If it finds a text node, it wraps each individual word in a new span element (styled with a random websafe colour), which it in turn inserts into a holding span which is then used to replace the original text node. Far out.



Comments (4)

Ingo said

Hofmann not Hoffmann

Posted by: Ingo at January 30, 2006 03:47 PM .

Posted by: lsd at February 4, 2006 11:37 PM .

bsn said

http://www.chaosunlimited.co.uk/inout/mpeg/lsd_being_tested_on_brtish_troops.mpg

(same film for those in countries where google video doesn't work)

Posted by: bsn at February 6, 2006 12:13 PM .

Luiz said

Great job! An important hommage to Mr. Hofmann ! Thanks !

Posted by: Luiz at February 20, 2006 02:09 AM .