Kill Floating Bars

Stops elements from following you as you scroll down the page

  1. // ==UserScript==
  2. // @name Kill Floating Bars
  3. // @namespace https://greasyfork.org/en/scripts/371-kill-floating-bars/
  4. // @description Stops elements from following you as you scroll down the page
  5. // @include *
  6. // @version 2
  7. // ==/UserScript==
  8.  
  9. // Original namespace was http://userscripts.org/scripts/show/123194
  10. var i;
  11. var all = document.getElementsByTagName("*");
  12. for(i = 0; i < all.length; i++) {
  13. var style = window.getComputedStyle(all[i]);
  14. var positioning = style.position;
  15. if ((positioning == 'absolute') || (positioning == 'fixed')) {
  16. all[i].style.position = 'static';
  17. }
  18. }