Pages

Clever snippet of javascript

First day of work at www.subtledisruption.com, I learnt a very cool snippet of javascript.This is basically is a bookmarklet, which add a particular javascript element to the page on the fly , and this js file (add.js) , searches the page for a video file and adds it to your playlist.

Pretty cool right ?

Here is a snippet of that code, ( beautfied by www.jsbeautifier.com )