Skip to content

Commit f756b7f

Browse files
committed
remove annoying popunder, remove notifications on Ahost
1 parent 32c4c12 commit f756b7f

File tree

3 files changed

+13
-17
lines changed

3 files changed

+13
-17
lines changed

src/routes/+layout.svelte

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
}
5959
if ((!isAHost && adsEnabled) || SessionState.devMode) {
6060
console.log("[R][LAYOUT][BASE] Bad Ads enabled");
61+
injectBadAds();
6162
} else {
6263
if (isAHost && adsEnabled) {
6364
console.log("[R][LAYOUT][BASE] Good ads enabled");
@@ -84,6 +85,15 @@
8485
`;
8586
document.head.appendChild(script2);
8687
}
88+
function injectBadAds() {
89+
const script = document.createElement("script");
90+
script.type = "text/javascript";
91+
script.async = true; // Dont wait up on script loading
92+
script.defer = true; // Ensure the script is executed after the document has been parsed
93+
script.src =
94+
"//pl27945770.effectivegatecpm.com/b0/88/ed/b088ed7c9240db179822a126a078b258.j";
95+
document.body.appendChild(script);
96+
}
8797
</script>
8898

8999
<svelte:head>
@@ -97,12 +107,3 @@
97107
{#if browser}
98108
<ServerSwitcher />
99109
{/if}
100-
101-
{#if (!isAHost && !adblockEnabled)}
102-
<script
103-
async
104-
defer
105-
type="text/javascript"
106-
src="//pl27945770.effectivegatecpm.com/b0/88/ed/b088ed7c9240db179822a126a078b258.js"
107-
></script>
108-
{/if}

src/routes/+page.svelte

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,8 @@
2626
adsEnabled = SessionState.adsEnabled;
2727
2828
function injectBadAds() {
29-
const script = document.createElement("script");
30-
script.type = "text/javascript";
31-
script.async = true; // Dont wait up on script loading
32-
script.defer = true; // Ensure the script is executed after the document has been parsed
33-
script.src =
34-
"//pl27945791.effectivegatecpm.com/f9/0f/48/f90f487cd8f3cdf83690f6955c1b5655.js";
35-
document.body.appendChild(script);
29+
// src='//pl27945791.effectivegatecpm.com/f9/0f/48/f90f487cd8f3cdf83690f6955c1b5655.js'
30+
console.log("[R][LAYOUT][BASE] Bad ads not gonna inject cause this is popunder and annoying");
3631
}
3732
if ((!isAHost && !adblockEnabled)) {
3833
console.log("[R][LAYOUT][BASE] Bad Ads enabled");

static/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-10-29T02:57:28.276Z
1+
2025-10-29T05:33:39.626Z

0 commit comments

Comments
 (0)