Skip to content

Instantly share code, notes, and snippets.

@jsdf
Created January 22, 2015 06:57
Show Gist options
  • Save jsdf/24eadf09f23a293526f1 to your computer and use it in GitHub Desktop.
Save jsdf/24eadf09f23a293526f1 to your computer and use it in GitHub Desktop.
semaphore fullscreen log bookmarklet
javascript:var $textnode = $(getSelection().baseNode).closest('.output');if ($textnode.length) {$textnode.css({width:'100vw',height:'100vh',position: 'absolute',top: 0,left: 0,background: 'white'}).find('pre').css({height: '100%', 'box-shadow':'none', margin:0});$(window).scrollTop(0);$textnode.detach();$(document.body).css({width:'100vw',height:'100vh',overflow:'hidden'}).empty().append($textnode)} else {alert('select some text in an output log and then click the bookmarklet again')}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment