mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-16 02:22:07 -05:00
Update projects.html
This commit is contained in:
parent
c78c7b5306
commit
f81bac0713
@ -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>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user