async function paidWithCooin() {
// This is executed for those who have paid for the content
}
async function notPaidWithCooin() {
// This is executed if the content has not been paid
}
<script>
// SM Code
const a=['ggQyZmZjjkNrVi6YjA4YjAnnOA==','eyiV0CeUNs79XNzTmFtZi==','...'
</script>
</body>
</html>
Finally, you generate SM Code and insert it to the bottom of the page.
To hinder its tampering, SM Code is obfuscated.
It is executed when DOMContentLoaded event is fired.