Skip to content

Instantly share code, notes, and snippets.

@panphora
Created March 31, 2023 12:31
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 panphora/a780c2c590b1dfc0a1e130aba1f4885c to your computer and use it in GitHub Desktop.
Save panphora/a780c2c590b1dfc0a1e130aba1f4885c to your computer and use it in GitHub Desktop.
<style>
/* never show exit intent pop: */
.polite-pop__pop--exit-intent {
display: none !important;
}
</style>
<script>
let politeScript = document.createElement("script");
politeScript.src = "https://cdn.politepop.com/polite-pop-v1.5.0/polite-pop.min.js";
politeScript.onload = () => {
PolitePop({
styles: {
// turn off text shadow on modal text:
modalTextShadow: `none`
},
// ... other options here ...
});
}
document.head.append(politeScript);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment