You’re halfway through an article, a giant login popup drops in, scrolling gets locked, and the page is basically dead. This bookmarklet brings it back in one tap.
⚠️ Important context: This is a front-end trick. It only changes how the page renders in your browser. It can bypass soft walls (content already loaded but hidden by overlays), but not hard walls where the server refuses to send content until you log in.
The Bookmarklet
Copy this exactly (including javascript:):
javascript:(function(){document.documentElement.style.setProperty('overflow','auto','important');document.body.style.setProperty('overflow','auto','important');document.body.style.setProperty('position','static','important');document.querySelectorAll('*').forEach(e=>{let s=window.getComputedStyle(e);if(s.position==='fixed'||s.position==='sticky'){e.remove();}})})(); Advertisement
Install It in 60 Seconds
- Create any bookmark (
Ctrl + Don Windows/Linux,Cmd + Don Mac). - Edit that bookmark.
- Name it something obvious like Remove Popups.
- Replace the bookmark URL with the bookmarklet code above.
- Save it to your bookmarks bar.
When a page gets blocked by overlays, click that bookmark.
What It Actually Does
Readable version:
(function () {
// 1) Restore page scrolling
document.documentElement.style.setProperty('overflow', 'auto', 'important');
document.body.style.setProperty('overflow', 'auto', 'important');
document.body.style.setProperty('position', 'static', 'important');
// 2) Remove fixed and sticky elements (common popup/overlay pattern)
document.querySelectorAll('*').forEach((el) => {
const style = window.getComputedStyle(el);
if (style.position === 'fixed' || style.position === 'sticky') {
el.remove();
}
});
})(); Most login walls and newsletter popups are just fixed-position DOM layers plus scroll lock. This script removes those layers and gives you scrolling back.
Advertisement
Side Effects You Should Expect
This is intentionally a broad hammer. It removes all fixed/sticky elements, not only bad ones.
That means it may also remove:
- sticky navigation bars
- floating chat widgets
- share sidebars
- cookie banners
If it over-cleans the page, just refresh. Everything resets.
Why This Belongs in Your Browser Toolkit
You can delete overlays manually in DevTools, but that gets old fast, especially on mobile. A bookmarklet gives you the same power in one click, on demand, anywhere.
If you’re new to this style of hacking, start with Edit Any Webpage in Seconds and then try Quora DevTools Bypass for a full real-world layered wall teardown.
Advertisement