Skip to content

Instantly share code, notes, and snippets.

@tlivings
Created December 31, 2012 22:30
Show Gist options
  • Select an option

  • Save tlivings/4423400 to your computer and use it in GitHub Desktop.

Select an option

Save tlivings/4423400 to your computer and use it in GitHub Desktop.
Boilerplate Bookmarklet
(function() {
try {
var s = d.createElement("script");
s.setAttribute("type","text/javascript");
s.setAttribute("src","http://<myhost>/<myscript>.js?t="+(new Date().getTime()));
b.appendChild(s);
}
catch(e) {
alert(e);
}
})(d=document,b=document.body);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment