Last active
December 11, 2015 23:58
-
-
Save cypok/4680054 to your computer and use it in GitHub Desktop.
Address bar fun
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Paste following into the address bar. | |
// simple notepad | |
data:text/html, <html contenteditable> | |
// edit any text on web page | |
javascript:document.getElementsByTagName('html')[0].contentEditable=true; | |
// powerful notepad for Ruby or any other language | |
// https://gist.github.com/4670615 | |
data:text/html, <style type="text/css">.e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div class="e" id="editor"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment