Skip to content

Instantly share code, notes, and snippets.

@juli-so
Forked from wilk/Ruby Notepad Bookmarklet
Created June 7, 2016 09:56
Show Gist options
  • Select an option

  • Save juli-so/ef2919e1b0185a12b7a83d644a28dd23 to your computer and use it in GitHub Desktop.

Select an option

Save juli-so/ef2919e1b0185a12b7a83d644a28dd23 to your computer and use it in GitHub Desktop.
Javascript in-browser editor with CTRL+SHIFT+Y shortcut to execute the content. Just put it in your address bar and press enter. It works only on Chrome.
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/javascript");addEventListener('keydown',function(evt){if(evt.ctrlKey && evt.shiftKey && evt.keyCode==89) eval(e.getSession().getValue());});</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment