Category Archives: Javascript

Fullscreen HTML5 Video in Safari via JavaScript

In Safari 5 HTML5 videos played in the <video> tag can now be made full­screen, if you’re using the default con­trols then a but­ton is avail­able, but if you’re over­rid­ing them with a cus­tom con­trol you can use: web­kit­En­ter­Full­Screen(); This needs to be called on the video tag ele­ment, for example, to full­screen the first video tag on […]

Last.fm Disco!

Go on last.fm and paste the fol­low­ing into the address bar: javascript:function toggle(){ t=setTimeout(“toggle();return false”, 300); LFM.Display.colourToggle(this, LFM.String.toRedStr, LFM.String.toBlackStr); return false;}; toggle(); return false; and hit return! (However, It seems to go a bit weird if you’ve got mul­tiple browser windows open..)