Created
September 8, 2022 18:31
-
-
Save cathysarisky/40a020a6ce3b02d650819a658c5044a1 to your computer and use it in GitHub Desktop.
Prevent Ghost users from seeing a prompt to upgrade to a paid plan when there isn't a paid plan.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Thanks to Ghost user Akshay (https://akshaykhot.com/) for this code snippet. --> | |
<script type="text/javascript"> | |
document.addEventListener("DOMContentLoaded", ready); | |
function ready() { | |
let member_btn = document.querySelector(".gh-subscribe-btn"); | |
if(member_btn) { | |
let subscribe_modal = document.querySelector(".gh-subscribe"); | |
subscribe_modal.remove(); | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment