Skip to content

Instantly share code, notes, and snippets.

@rdmurphy
Created November 3, 2011 19:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rdmurphy/1337512 to your computer and use it in GitHub Desktop.
Save rdmurphy/1337512 to your computer and use it in GitHub Desktop.
"Do a Barrel Roll!" Bookmarklet
javascript:(function(){var%20css=document.createElement("style");css.type="text/css";css.innerHTML="@-moz-keyframes%20roll%20{%20100%25%20{%20-moz-transform:%20rotate(360deg);%20}%20}%20@-o-keyframes%20roll%20{%20100%25%20{%20-o-transform:%20rotate(360deg);%20}%20}%20@-webkit-keyframes%20roll%20{%20100%25%20{%20-webkit-transform:%20rotate(360deg);%20}%20}%20body{%20-moz-animation-name:%20roll;%20-moz-animation-duration:%204s;%20-moz-animation-iteration-count:%201;%20-o-animation-name:%20roll;%20-o-animation-duration:%204s;%20-o-animation-iteration-count:%201;%20-webkit-animation-name:%20roll;%20-webkit-animation-duration:%204s;%20-webkit-animation-iteration-count:%201;%20}";document.getElementsByTagName('head')[0].appendChild(css)})();
@tswicegood
Copy link

Dagnabit. GitHub's filtering won't let me turn this into a real bookmarklet that can be dragged.

@rdmurphy
Copy link
Author

rdmurphy commented Nov 6, 2011

Changed it to an encoded version that makes Safari 5 happy. Still works on the Fox/Chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment