Last active
August 29, 2015 14:03
-
-
Save pshezgyr/f4d06da48dbc89e80f28 to your computer and use it in GitHub Desktop.
Css editor snippet
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
javascript:document.body.appendChild( | |
(function(s){ | |
s.setAttribute('contenteditable',''); | |
s.setAttribute('style','display:block; border:1px solid black; width:90%; height:300px; position:fixed; bottom:50px; left:5%; z-index:65536;'); | |
s.setAttribute('onkeydown','event.stopPropagation()'); | |
s.setAttribute('onkeypress','event.stopPropagation()'); | |
s.setAttribute('onkeyup','event.stopPropagation()'); | |
return s; | |
})(document.createElement('style')) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment