(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]); | |
} | |
} | |
})(); |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
Brilliant on mobile. Adding a bookmarklet is a bit of a pain on iOS; I used these directions: https://apple.stackexchange.com/a/74208/22536. I had no problem copying the formatted JS text from the article and prefixing it with "javascript:" when editing the bookmark. |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
You might also want to check for position sticky since that has decent support now. |
This comment has been minimized.
This comment has been minimized.
yes, what @terwanerik said, but I'd suggest |
This comment has been minimized.
This comment has been minimized.
extension doesn't work in twitter :\ |
This comment has been minimized.
This comment has been minimized.
This also kills headers that use
(line 5) |
This comment has been minimized.
This comment has been minimized.
Is it at all possible to adapt this to a Stylus/Stylish script? |
This comment has been minimized.
This comment has been minimized.
Mozilla broke the code I was using to make this a standalone button. Had to install the kill sticky addon to get it back The bookmarklet still works fine so the war on sticky/fixed objects continues. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Loved the sticky header on the new site. Loved killing it even more. |
This comment has been minimized.
https://alisdair.mcdiarmid.org/kill-sticky-headers/