Skip to content

Instantly share code, notes, and snippets.

@slikts
Created August 23, 2011 12:23
Show Gist options
  • Save slikts/1164980 to your computer and use it in GitHub Desktop.
Save slikts/1164980 to your computer and use it in GitHub Desktop.
CSS test bookmarklet
javascript:(function() { var x = document.createElement('style'); document.getElementsByTagName('head')[0].appendChild(x); var y = document.createElement('textarea'); y.setAttribute('style', 'position: fixed; right: 0; top: 0; z-index: 99999;'); y.addEventListener('keydown', function() { x.innerHTML = this.value; }); document.body.appendChild(y); })();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment