Skip to content

Commit

Permalink
json overhaul
Browse files Browse the repository at this point in the history
  • Loading branch information
RedNotSus committed Mar 13, 2024
1 parent d63848e commit 3385597
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 34 deletions.
36 changes: 12 additions & 24 deletions static/!.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,30 +60,18 @@
</button>
</body>
<script>
// roblox
const iframeIdValue = [
"hvtrs8%2F-nmweg%2Cnn%2Fkfpaoe-slirpgt%3Darp%5Dpig%3Fcmm%2Crmbnoz.alkelt%24pcrvngr%3F57gos",
// andriod
"hvtrs8%2F-nmw%2Cge%2Fkfpaoe-slirpgt%3Darp%5Dpig%3Fcmm%2Culcwbg.nawnahgr1%26raptlep%3D75emq",
// genshin
"hvtrs8%2F-nmw%2Cge%2Fkfpaoe-slirpgt%3Darp%5Dpig%3Fcmm%2CmkHmYm.EelsjilIopccv%26raptlep%3D75emq",
//fortnite
"hvtrs8%2F-nmw%2Cge%2Fkfpaoe-slirpgt%3Darp%5Dpig%3Fcmm%2Ceriagcmgs%2Cfmrvnktg%26raptlep%3D75emq",
//melon
"hvtrs8%2F-nmw%2Cge%2Fkfpaoe-slirpgt%3Darp%5Dpig%3Fcmm%2Csvufim25.OenolPna%7Bgpownf%26raptlep%3D75EMQ",
//crc
"hvtrs8%2F-nmw%2Cge%2Fkfpaoe-slirpgt%3Darp%5Dpig%3Fcmm%2Cdgvqiqtgrq.ak%24pcrvngr%3F57gos",
//toca
"hvtrs8%2F-nmw%2Cge%2Fkfpaoe-slirpgt%3Darp%5Dpig%3Fcmm%2Ctmccbmcc.voaanideuoplf%26raptlep%3D75emq",
// fc soccor
"hvtrs8%2F-nmw%2Cge%2Fkfpaoe-slirpgt%3Darp%5Dpig%3Fcmm%2Cec.ep%2Cfkfcmmbklg%26raptlep%3D75emq",
];
if (iframeIdValue.includes(sessionStorage.getItem("encodedUrl"))) {
const nowJsScript = document.createElement("script");
nowJsScript.src = "/assets/uv/now.js";
document.head.appendChild(nowJsScript);
console.log("Now.js has been loaded");
}
fetch("/assets/json/nowgg.json")
.then((response) => response.json())
.then((data) => {
const iframeIdValue = data;
if (iframeIdValue.includes(sessionStorage.getItem("encodedUrl"))) {
const nowJsScript = document.createElement("script");
nowJsScript.src = "/assets/uv/now.js";
document.head.appendChild(nowJsScript);
console.log("Now.js has been loaded");
}
})
.catch((error) => console.error("Error:", error));
const reloadButton = document.getElementById("reload-button");
reloadButton.addEventListener("click", function () {
document.getElementById("iframeid").contentWindow.location.reload(); // Prevents site.com/#xyz from not working
Expand Down
2 changes: 1 addition & 1 deletion static/assets/js/motd.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
window.addEventListener("load", (event) => {
fetch("/assets/motd.json")
fetch("/assets/static/motd.json")
.then((response) => response.json())
.then((data) => {
document.getElementById("motd").onclick = function () {
Expand Down
4 changes: 2 additions & 2 deletions static/assets/js/randomSentence.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
window.addEventListener("load", (event) => {
fetch("/assets/quotes.json")
fetch("/assets/json/quotes.json")
.then((response) => response.json())
.then((data) => {
const totalFrequency = data.reduce(
(acc, item) => acc + item.frequency,
0,
0
);
const rng = Math.random() * totalFrequency;

Expand Down
8 changes: 4 additions & 4 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 Down Expand Up @@ -64,15 +64,15 @@ document.addEventListener("DOMContentLoaded", function () {
}
});

fetch("/assets/ads.json")
fetch("/assets/static/ads.json")
.then((response) => response.json())
.then((data) => {
if (data.domains.includes(window.location.hostname)) {
const adscipterz92 = document.createElement("script");
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
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions static/assets/json/nowgg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
"hvtrs8%2F-nmweg%2Cnn%2Fkfpaoe-slirpgt%3Darp%5Dpig%3Fcmm%2Crmbnoz.alkelt%24pcrvngr%3F57gos",
"hvtrs8%2F-nmw%2Cge%2Fkfpaoe-slirpgt%3Darp%5Dpig%3Fcmm%2Culcwbg.nawnahgr1%26raptlep%3D75emq",
"hvtrs8%2F-nmw%2Cge%2Fkfpaoe-slirpgt%3Darp%5Dpig%3Fcmm%2CmkHmYm.EelsjilIopccv%26raptlep%3D75emq",
"hvtrs8%2F-nmw%2Cge%2Fkfpaoe-slirpgt%3Darp%5Dpig%3Fcmm%2Ceriagcmgs%2Cfmrvnktg%26raptlep%3D75emq",
"hvtrs8%2F-nmw%2Cge%2Fkfpaoe-slirpgt%3Darp%5Dpig%3Fcmm%2Csvufim25.OenolPna%7Bgpownf%26raptlep%3D75EMQ",
"hvtrs8%2F-nmw%2Cge%2Fkfpaoe-slirpgt%3Darp%5Dpig%3Fcmm%2Cdgvqiqtgrq.ak%24pcrvngr%3F57gos",
"hvtrs8%2F-nmw%2Cge%2Fkfpaoe-slirpgt%3Darp%5Dpig%3Fcmm%2Ctmccbmcc.voaanideuoplf%26raptlep%3D75emq",
"hvtrs8%2F-nmw%2Cge%2Fkfpaoe-slirpgt%3Darp%5Dpig%3Fcmm%2Cec.ep%2Cfkfcmmbklg%26raptlep%3D75emq"
]
File renamed without changes.
5 changes: 2 additions & 3 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
<head>
<link rel="icon" type="image/x-icon" href="/img/canvas.ico" />
<script src="/assets/js/font.js"></script>
<script src="/assets/js/randomSentence.js?e289a6b357297125f59f259d868044f3a31bc5e9"></script>
<script src="/assets/js/randomSentence.js?v=2"></script>
<link rel="stylesheet" type="text/css" href="/assets/css/index.css?1" />
<link rel="stylesheet" type="text/css" href="/assets/css/nav.css" />
<title>Dashboard</title>
<meta name="monetag" content="07282c5cd1b8223c237308a7fbb229f9">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="Rednotsus, 22yeetz22, kandurz" />
<meta name="author" content="Rednotsus" />
<meta charset="utf-8">
<meta http-equiv="Cache-control" content="public">
<meta
Expand Down

0 comments on commit 3385597

Please sign in to comment.