Skip to content

Instantly share code, notes, and snippets.

@pshezgyr
Last active August 29, 2015 14:03
Show Gist options
  • Save pshezgyr/f4d06da48dbc89e80f28 to your computer and use it in GitHub Desktop.
Save pshezgyr/f4d06da48dbc89e80f28 to your computer and use it in GitHub Desktop.
Css editor snippet
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