From f8f2f6577a1c4b9ca4c86008dfe701be9cebd31c Mon Sep 17 00:00:00 2001 From: Bubbo <85169821+xbubbo@users.noreply.github.com> Date: Tue, 17 Dec 2024 07:29:34 +0000 Subject: [PATCH] Remove ads from adsense domains --- static/assets/js/m.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/static/assets/js/m.js b/static/assets/js/m.js index e49863b863..2de2227fe3 100644 --- a/static/assets/js/m.js +++ b/static/assets/js/m.js @@ -1,11 +1,22 @@ -/* document.addEventListener("DOMContentLoaded", () => { - if (!document.getElementById("no")) { +document.addEventListener("DOMContentLoaded", () => { + const blockedHostnames = [ + "gointerstellar.app", + "computers-science.com", + "roundrockisd.online", + "algebraxyz.info", + "thegalleryofart.info", + ]; + + if ( + !blockedHostnames.includes(window.location.hostname) && + !document.getElementById("no") + ) { const script = document.createElement("script"); script.type = "text/javascript"; script.src = "//flatjeep.com/5e/6b/27/5e6b2776400180cc548a7dfd8ab3f717.js"; document.body.appendChild(script); } -}); */ +}); // Dynamic document.addEventListener("DOMContentLoaded", () => {