Switch off lights Bookmarklet

.

Source (youtube.com)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3A


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)});