Skip to content

Instantly share code, notes, and snippets.

@przemoc
Created October 23, 2022 22:42
Show Gist options
  • Save przemoc/d0899aaa288882b6358cf1c7f69ee2af to your computer and use it in GitHub Desktop.
Save przemoc/d0899aaa288882b6358cf1c7f69ee2af to your computer and use it in GitHub Desktop.
Bookmarklet: Kill login wall

Bookmarklet: Kill login wall

Some sites needlessly force you to log in or sign up to continue browsing them. Sometimes it can be bypassed, partially or fully.

I will put down down JavaScript bookmarklets/snippets dealing with these nagging modal dialog boxes to some extent one way or another. No guarantee it will work in the future.

Tested in Chrome (106), Edge (106), Firefox (106).

Installation

  • Chrome: In bookmarks bar select Add page... from context menu, you'll get new window.
  • Edge: In Bookmarks Toolbar select Manage favorites from context menu, in Favorites page click Add favorite, you'll get new window.
  • Firefox: In favorites bar select New Bookmark... from context menu, you'll get new window.

Put whatever name you like, use one of following javascript: oneliners as URL, and save.

Usage

Click bookmark for relevant site whenever nag screen appears.

PromptHero: Kill login wall (https://prompthero.com)

javascript:(function(){document.body.classList.remove("modal-open");document.getElementById("signUpModal").style.display="none";[...document.querySelectorAll(".modal-backdrop,.bottom-signup-banner,.bottom-cta")].forEach(function(e){e.style.display="none";});})()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment