Skip to content

Instantly share code, notes, and snippets.

@albertsun
Created January 14, 2014 18:57
Show Gist options
  • Save albertsun/8423723 to your computer and use it in GitHub Desktop.
Save albertsun/8423723 to your computer and use it in GitHub Desktop.
Save this snippet of javascript as a bookmarklet to kill any fixed top or sidebars on a web page.
javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.firstElementChild.appendChild(c)}})(window,document,"1.10.2",function($,L){$('*').filter(function(){return%20$(this).css("position")==='fixed';}).remove();});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment