Skip to content

Instantly share code, notes, and snippets.

@murat-kilic
Created June 3, 2021 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save murat-kilic/717035feb2a042e41b0813f694d85521 to your computer and use it in GitHub Desktop.
Save murat-kilic/717035feb2a042e41b0813f694d85521 to your computer and use it in GitHub Desktop.
<script>
$(function() {
const headerText='<div style="margin:1em 0">Sign up to receive...</div>';
window.addEventListener('hashchange', function() { if (location.hash.startsWith('#/portal')) {setTimeout(function(){$("#ghost-portal-root").find("iframe").contents().find(".gh-portal-content.signup .gh-portal-section").prepend(headerText)},200)}})
setTimeout(function(){
$("#ghost-portal-root").find("iframe").contents().find('.gh-portal-triggerbtn-container').click(function(){setTimeout(function(){$("#ghost-portal-root").find("iframe").contents().find(".gh-portal-content.signup .gh-portal-section").prepend(headerText);},200)})
},200);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment