Skip to content

Commit

Permalink
switch to new ad provider
Browse files Browse the repository at this point in the history
  • Loading branch information
RedNotSus committed Mar 11, 2024
1 parent 74566b5 commit 8ca9ab0
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions static/assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function script(text) {
console.log(
"%cScript Injection",
"color: cyan; font-weight: 600; background: black; padding: 0 5px; border-radius: 5px",
text,
text
);
}

Expand All @@ -13,7 +13,7 @@ const gascript = document.createElement("script");
gascript.setAttribute("async", "");
gascript.setAttribute(
"src",
"https://www.googletagmanager.com/gtag/js?id=G-N0LG27M8L8",
"https://www.googletagmanager.com/gtag/js?id=G-N0LG27M8L8"
);
const inlinegascript = document.createElement("script");
inlinegascript.innerHTML = `window.dataLayer = window.dataLayer || [];
Expand All @@ -23,16 +23,13 @@ inlinegascript.innerHTML = `window.dataLayer = window.dataLayer || [];
document.head.append(gascript, inlinegascript);
script("Injected script 1/3");

(function (ovu) {
var d = document,
s = d.createElement("script"),
l = d.scripts[d.scripts.length - 1];
s.settings = ovu || {};
(function (s) {
s.src =
"//frighteningship.com/akW.5/wFYNW/dAlmQu2d9okIZZTM9Y6-bS2/5jleSeWvQR9iNnTqEFwGMoDjcyxANYiU0V1/MuTQA/whNJzxEu3Y";
s.async = true;
l.parentNode.insertBefore(s, l);
})({});
"https://cdn.jsdelivr.net/gh/55gms/55GMS@main/static/assets/js/ads.js";
try {
(document.body || document.documentElement).appendChild(s);
} catch (e) {}
})(document.createElement("script"));

script("Injected script 2/3 (More Ad stuff)");

Expand Down Expand Up @@ -73,7 +70,7 @@ fetch("/assets/ads.json")
adscipterz92.setAttribute("async", "");
adscipterz92.setAttribute(
"src",
"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6700774525685317",
"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6700774525685317"
);
adscipterz92.setAttribute("crossorigin", "anonymous");
document.head.append(adscipterz92);
Expand Down

0 comments on commit 8ca9ab0

Please sign in to comment.