Created
November 3, 2011 19:21
-
-
Save rdmurphy/1337512 to your computer and use it in GitHub Desktop.
"Do a Barrel Roll!" Bookmarklet
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:(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)})(); |
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
Dagnabit. GitHub's filtering won't let me turn this into a real bookmarklet that can be dragged.