Skip to content

Instantly share code, notes, and snippets.

@kottenator
Created January 22, 2017 18:30
Show Gist options
  • Save kottenator/42b5c8081fd4f1fa5f0544f8196d8d3c to your computer and use it in GitHub Desktop.
Save kottenator/42b5c8081fd4f1fa5f0544f8196d8d3c to your computer and use it in GitHub Desktop.
javascript:void(function(){var el=document.getElementById('my-grid');if(el){el.style.display=el.style.display=='block'?'none':'block';}else{el=document.createElement('div');document.body.appendChild(el);el.id='my-grid';el.style.cssText='background-image:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' width=\'1\' height=\'25.5\'><rect style=\'fill: rgb(255,0,0);\' width=\'1\' height=\'0.25px\' x=\'0\' y=\'0\'/></svg>");position:absolute;left:0;right:0;top:0;z-index:9999;pointer-events:none;background-position:0 3px;display:block;';function resize(){el.style.height=document.body.scrollHeight+'px';}resize();document.body.addEventListener('resize', resize);}}())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment