[Modify] Ad-Blocker Update

This commit is contained in:
Kanani Nirav
2023-12-01 16:14:58 +09:00
parent cb066407d8
commit 9746cbfadc
2 changed files with 13 additions and 1 deletions

View File

@@ -24,7 +24,7 @@
<image src='./exclamation-mark.png' class='img' /> <image src='./exclamation-mark.png' class='img' />
<h2>AdBlock Detected!</h2> <h2>AdBlock Detected!</h2>
<p>Sorry. We detected that you have activated Ad-Blocker. <br /> <p>Sorry. We detected that you have activated Ad-Blocker. <br />
Please Consider supporting us by disabling your Ad-Blocker It helps us in maintaining this website.<br /> Please Consider supporting us by disabling your Ad-Blocker It helps us in maintaining this website.<br />
To View the content disable Ad-Blocker and refresh the page. Thank You !!!</p> To View the content disable Ad-Blocker and refresh the page. Thank You !!!</p>
`; `;
document.body.appendChild(adp); document.body.appendChild(adp);
@@ -34,6 +34,13 @@
document.body.removeChild(adp); document.body.removeChild(adp);
}; };
} }
function uBlockActive(){
if ( window.adsbygoogle.push.length > 0) {
return false
}
adBlockFunction();
}
</script> </script>
<style> <style>
.img{ .img{

View File

@@ -60,6 +60,11 @@
{% endif %} {% endif %}
<!-- <span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span> --> <!-- <span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span> -->
</footer> </footer>
<script type="text/javascript">
window.addEventListener('load', function () {
uBlockActive();
})
</script>
</main> </main>
<script data-name="BMC-Widget" data-cfasync="false" src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" data-id="kananinirav" data-description="Support me on Buy me a coffee!" data-message="" data-color="#40DCA5" data-position="Right" data-x_margin="18" data-y_margin="18"></script> <script data-name="BMC-Widget" data-cfasync="false" src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" data-id="kananinirav" data-description="Support me on Buy me a coffee!" data-message="" data-color="#40DCA5" data-position="Right" data-x_margin="18" data-y_margin="18"></script>
</body> </body>