Skip to content

Instantly share code, notes, and snippets.

@soxofaan
Last active December 17, 2015 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soxofaan/5561683 to your computer and use it in GitHub Desktop.
Save soxofaan/5561683 to your computer and use it in GitHub Desktop.
bookmarklet to add bouncing pony
// permanent version
/*javascript:*/(function(e,t){var i=t.createElement("img");i.src="http://25.media.tumblr.com/tumblr_m9le7kBGy51rf54jjo1_400.gif";var o=i.style;o.position="fixed",o.bottom="0",o.left="20%",o["z-index"]=1e4,t.body.appendChild(i)})(window,document);
// on/of version
/*javascript:*/(function(n,e){function t(){var n=e.createElement("img");n.src="http://25.media.tumblr.com/tumblr_m9le7kBGy51rf54jjo1_400.gif",n.id="pinkbouncingpony";var t=n.style;t.position="fixed",t.bottom="0",t.left="20%",t["z-index"]=1e4,e.body.appendChild(n)}function i(){e.body.removeChild(e.getElementById("pinkbouncingpony"))}function o(){t(),n.setTimeout(m,5e3)}function m(){i(),n.setTimeout(o,1e4)}o()})(window,document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment