Switch off lights Bookmarklet

Works on many flash game or video pages, just create black div with huge z-index which hide everything except flash object

Source (youtube.com)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3Avoid%28d%3Ddocument.getElementsByTagName%28%27body%27%29.item%280%29.appendChild%28document.createElement%28%27div%27%29%29%29%3Bvoid%28d.style.width%3D%27100%25%27%29%3Bvoid%28d.style.height%3D%27200%25%27%29%3Bvoid%28d.style.background%3D%27%23000%27%29%3Bvoid%28d.style.position%3D%27absolute%27%29%3Bvoid%28d.style.top%3D%270%27%29%3Bvoid%28d.style.left%3D%270%27%29%3Bvoid%28d.style.zIndex%3D%271000000%27%29%3Bvoid%28d.onclick%3Dfunction%28%29%7Bdocument.getElementsByTagName%28%27body%27%29.item%280%29.removeChild%28d%29%7D%29%3B


Rate it:


Tags:

Comments

Comments so far. Add yours.

tom

useless


Mike

it only switch off the lights, what about switching on them back?


Lukas238

An improve. It has a semi-transparent background, and if is applied multiples times, it will find and remove by ID.

javascript:void(d=document.getElementsByTagName('body').item(0).appendChild(document.createElement('div')));void(d.id='lightoff');void(d.style.width='100%');void(d.style.height='200%');void(d.style.background='rgba(0,0,0,0.7)');void(d.style.position='absolute');void(d.style.top='0');void(d.style.left='0');void(d.style.zIndex='1000000');void(d.onclick=function(){return (elem=document.getElementById('lightoff')).parentNode.removeChild(elem)});