Skip to content

Instantly share code, notes, and snippets.

@vmasek
Forked from wilk/Ruby Notepad Bookmarklet
Created August 20, 2016 21:37
Show Gist options
  • Save vmasek/87a263f662dc8be0eb34cd424761affb to your computer and use it in GitHub Desktop.
Save vmasek/87a263f662dc8be0eb34cd424761affb 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