Update projects.html

This commit is contained in:
LEGALISE_PIRACY 2024-01-26 06:30:00 +00:00
parent c78c7b5306
commit f81bac0713

View File

@ -156,12 +156,16 @@ There is still an option to disable ads. You can also use an adblocker (which I
</footer> </footer>
<script> <script>
document.addEventListener("DOMContentLoaded", function () { document.addEventListener("DOMContentLoaded", function () {
if(document.querySelectorAll('[id=adcontainer]')) { const adContainers = document.querySelectorAll('[id=adcontainer]');
for(let i = 0; i < document.querySelectorAll('[id=adcontainer]').length; i++) { if (adContainers.length > 0) {
if(Math.random() < 0.5 || localStorage.getItem("selenite.adblock") == "true") for (let i = 0; i < adContainers.length; i++) {
document.querySelectorAll('[id=adcontainer]')[i].innerHTML = ""; if (Math.random() < 0.5 || localStorage.getItem("selenite.adblock") === "true") {
adContainers[i].innerHTML = "";
} }
} }
}
});
</script> </script>