Skip to content

Instantly share code, notes, and snippets.

@amit
Created April 27, 2010 17:35
Show Gist options
  • Save amit/381040 to your computer and use it in GitHub Desktop.
Save amit/381040 to your computer and use it in GitHub Desktop.
bookmarklet jquery insert
javascript:function loadScript(u) {
var s = document.createElement('script');
s.setAttribute('src', u);
s.onreadystatechange= function () {
bmhelper();
};
s.onload = bmhelper;
document.getElementsByTagName('body')[0].appendChild(s);}
loadScript('http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js');
function bmhelper(){
jQuery("div#frame").remove();
jQuery("div#hqcbx").remove();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment