Difference between revisions of "Kill stickies"

From AwasuWiki
Jump to: navigation, search
(Created page with "This user tool removes overlays, fixed menu bars and footers, chat boxes, anything with a fixed position, from a web page. <code>javascript:(function(){(function(){var i,elem...")
 
 
Line 2: Line 2:
  
 
<code>javascript:(function(){(function(){var i,elements=document.querySelectorAll('body *');for(i=0;i&lt;elements.length;i++){if(getComputedStyle(elements[i]).position==='fixed'){elements[i].parentNode.removeChild(elements[i]);}}})()})()</code>
 
<code>javascript:(function(){(function(){var i,elements=document.querySelectorAll('body *');for(i=0;i&lt;elements.length;i++){if(getComputedStyle(elements[i]).position==='fixed'){elements[i].parentNode.removeChild(elements[i]);}}})()})()</code>
 +
 +
More information on how to set this up can be found [http://www.awasu.com/weblog/all-stickies-must-die/ here].
  
 
Based on [https://alisdair.mcdiarmid.org/kill-sticky-headers/ this bookmarklet] by Alisdair McDiarmid.
 
Based on [https://alisdair.mcdiarmid.org/kill-sticky-headers/ this bookmarklet] by Alisdair McDiarmid.

Latest revision as of 09:01, 7 April 2017

This user tool removes overlays, fixed menu bars and footers, chat boxes, anything with a fixed position, from a web page.

javascript:(function(){(function(){var i,elements=document.querySelectorAll('body *');for(i=0;i<elements.length;i++){if(getComputedStyle(elements[i]).position==='fixed'){elements[i].parentNode.removeChild(elements[i]);}}})()})()

More information on how to set this up can be found here.

Based on this bookmarklet by Alisdair McDiarmid.