From eda3b2cd8951c223b05674fe0f932c6c74e1027d Mon Sep 17 00:00:00 2001 From: Logan Date: Mon, 27 Mar 2023 19:22:20 -0400 Subject: [PATCH 1/2] discontinue some settings + host changes Also revert other things --- 404.html | 1 - catch.html | 1 - data/js/swap.js | 14 ++++---------- dev.html | 1 - emulator.html | 1 - export.html | 1 - gb.html | 1 - gba-2.html | 1 - gba.html | 1 - gbc.html | 1 - gbindex.html | 1 - index.html | 3 +-- index_beta.html | 1 - info.html | 1 - launchpad.html | 3 +-- n64.html | 1 - nds.html | 1 - nds2.html | 1 - nes.html | 1 - nesindex.html | 1 - offline.html | 1 - recommendations.html | 1 - romindex.html | 1 - segaMD.html | 1 - settings.html | 21 ++------------------- snes.html | 1 - update.html | 1 - user_scripts/palmbeach.k12.fl.us.js | 26 -------------------------- user_scripts/theme.js | 5 ++++- 29 files changed, 12 insertions(+), 83 deletions(-) delete mode 100644 user_scripts/palmbeach.k12.fl.us.js diff --git a/404.html b/404.html index debe10f6..79dcaeb2 100644 --- a/404.html +++ b/404.html @@ -106,7 +106,6 @@

You have reached this page because either something was mislinked, or you t - diff --git a/catch.html b/catch.html index c130cdae..7112ca37 100644 --- a/catch.html +++ b/catch.html @@ -40,7 +40,6 @@

catch error moment!!

- diff --git a/data/js/swap.js b/data/js/swap.js index 9e8c6b9e..6b23ddcc 100644 --- a/data/js/swap.js +++ b/data/js/swap.js @@ -44,7 +44,7 @@ if (isNet == 0) { checkType = 2; } if (gameCoreType == "nds"){ - checkType = 3; + checkType = 4; } } if (isCheck == 2) { @@ -60,19 +60,19 @@ if (isNet == 0) { if (checkType == 1) { gameName = gameText; - let gameLink = "https://endpoint.i10.repl.co/gba-alt/" + gameName + ".gba"; + let gameLink = "../gba-host/" + gameName + ".gba"; gameName = gameLink; console.log("gba-server"); } if (checkType == 2) { gameName = gameText; - let gameLink = "https://endpoint.i10.repl.co/nes-alt/" + gameName + ".nes.zip"; + let gameLink = "../nes-alt/" + gameName + ".nes.zip"; gameName = gameLink; console.log("nes-server"); } if (checkType == 3) { gameName = gameText; - let gameLink = "https://nds-host.nailington1.repl.co/?url=https://rawcdn.githack.com/mathadventure1/nds-host/0a9e47d73741eed5a1129535d1cb027ead56b027/nds-alt/" + gameName + ".zip"; + let gameLink = "https://rawcdn.githack.com/mathadventure1/nds-host/0a9e47d73741eed5a1129535d1cb027ead56b027/nds-alt/" + gameName + ".zip"; gameName = gameLink; console.log("nds-server"); isCheck = 0; @@ -133,10 +133,4 @@ if (custType == 3) { let gameLink = custHost + "n64-alt/" + gameName + ".7z"; gameName = gameLink; console.log(gameLink); -} - -let isDistrict = localStorage.getItem("district"); -if (isDistrict == "1") { - gameName += "?palmbeach.k12.fl.us"; - console.log(gameName); } \ No newline at end of file diff --git a/dev.html b/dev.html index d7ee8137..036169e3 100644 --- a/dev.html +++ b/dev.html @@ -163,7 +163,6 @@

Featured Sites using this page!

- diff --git a/emulator.html b/emulator.html index ef0c435d..179dec59 100644 --- a/emulator.html +++ b/emulator.html @@ -374,7 +374,6 @@

Featured Sites using this page!

Re-designed, Changed Emulator, and more by Cattn + Nailington#0747

- diff --git a/export.html b/export.html index ed17c9c1..d290dfd2 100644 --- a/export.html +++ b/export.html @@ -45,7 +45,6 @@

Import/Export your Data

- diff --git a/gb.html b/gb.html index bc3d6f12..85fe945a 100644 --- a/gb.html +++ b/gb.html @@ -628,7 +628,6 @@

Featured Sites using this page!

- diff --git a/gba-2.html b/gba-2.html index 88990452..f920fb13 100644 --- a/gba-2.html +++ b/gba-2.html @@ -201,7 +201,6 @@

Featured Sites using this page!

- diff --git a/gba.html b/gba.html index 01907b87..770f7925 100644 --- a/gba.html +++ b/gba.html @@ -475,7 +475,6 @@

Featured Sites using this page!

- diff --git a/gbc.html b/gbc.html index 5b87b32f..77b234cc 100644 --- a/gbc.html +++ b/gbc.html @@ -587,7 +587,6 @@

Featured Sites using this page!

- diff --git a/gbindex.html b/gbindex.html index 7311a659..d25c7bad 100644 --- a/gbindex.html +++ b/gbindex.html @@ -139,7 +139,6 @@

Legacy GBA (The - diff --git a/index.html b/index.html index 3b371621..59056565 100644 --- a/index.html +++ b/index.html @@ -161,6 +161,5 @@

Play/Patch Your - - + diff --git a/index_beta.html b/index_beta.html index 51b3ea83..af32e776 100644 --- a/index_beta.html +++ b/index_beta.html @@ -71,7 +71,6 @@

Favorites!

- diff --git a/info.html b/info.html index 34bb7676..599883d5 100644 --- a/info.html +++ b/info.html @@ -72,7 +72,6 @@

I have another question not here!

Contact us on discord with any other questions! Join here!

- diff --git a/launchpad.html b/launchpad.html index 373a1b61..882835a1 100644 --- a/launchpad.html +++ b/launchpad.html @@ -118,5 +118,4 @@ - - + diff --git a/n64.html b/n64.html index 95b66ae8..d58815a4 100644 --- a/n64.html +++ b/n64.html @@ -432,7 +432,6 @@

Featured Sites using this page!

- diff --git a/nds.html b/nds.html index 94df7392..dea6b601 100644 --- a/nds.html +++ b/nds.html @@ -930,7 +930,6 @@

Featured Sites using this page!

- diff --git a/nds2.html b/nds2.html index a9980109..c0764bb4 100644 --- a/nds2.html +++ b/nds2.html @@ -1005,7 +1005,6 @@

Featured Sites using this page!

- diff --git a/nes.html b/nes.html index 2de0d912..25c02c7d 100644 --- a/nes.html +++ b/nes.html @@ -840,7 +840,6 @@

Featured Sites using this page!

- diff --git a/nesindex.html b/nesindex.html index bcf6a564..0683e5ae 100644 --- a/nesindex.html +++ b/nesindex.html @@ -135,7 +135,6 @@

N64 Emulator (NEW!)< - diff --git a/offline.html b/offline.html index d874b226..c7d4ef66 100644 --- a/offline.html +++ b/offline.html @@ -106,7 +106,6 @@

All joking aside, you are OFFLINE! Some pages may still load, but the one y - diff --git a/recommendations.html b/recommendations.html index 689c0904..25d1ad02 100644 --- a/recommendations.html +++ b/recommendations.html @@ -180,7 +180,6 @@

Staff Picks

- diff --git a/romindex.html b/romindex.html index 2792ee85..8341305d 100644 --- a/romindex.html +++ b/romindex.html @@ -130,7 +130,6 @@

Play Your ROM - diff --git a/segaMD.html b/segaMD.html index 5af29fa6..971b373b 100644 --- a/segaMD.html +++ b/segaMD.html @@ -865,7 +865,6 @@

Featured Sites using this page!

- diff --git a/settings.html b/settings.html index a9e473aa..9392c8ac 100644 --- a/settings.html +++ b/settings.html @@ -68,27 +68,11 @@

Welcome to the Settings Page!

Netplay ON or OFF

HUGE WARNING: PLEASE BACKUP YOUR SAVE STATES BEFORE DOING THIS THERE ARE RISKS INVOLVED, AS IT WILL USE THE OLD CORES FOR RETROARCH.

-
-
-
- -
-
-
-
-
+

THIS OPTION HAS BEEN DISCONTINUED!

Select Hosting Provider (REPLIT or GITHUB)

Please note that not all games will work on both providers (most do, but some may not)

-
-
-
- -
-
-
-
-
+

THIS OPTION HAS BEEN DISCONTINUED!


Set Self Deployment (Include / at the end)

@@ -163,7 +147,6 @@

More Themes soon + More Settings

- diff --git a/snes.html b/snes.html index 379c3010..26488569 100644 --- a/snes.html +++ b/snes.html @@ -1042,7 +1042,6 @@

Featured Sites using this page!

- diff --git a/update.html b/update.html index 3fe303e8..b7d1de04 100644 --- a/update.html +++ b/update.html @@ -167,7 +167,6 @@

Have any other questions?

- diff --git a/user_scripts/palmbeach.k12.fl.us.js b/user_scripts/palmbeach.k12.fl.us.js deleted file mode 100644 index aeb761dc..00000000 --- a/user_scripts/palmbeach.k12.fl.us.js +++ /dev/null @@ -1,26 +0,0 @@ -const isDistrict1 = window.location.href.includes("palmbeach.k12.fl.us"); -if (isDistrict1) { - updateLinks("palmbeach.k12.fl.us"); - localStorage.setItem("district", "1"); -} - function updateLinks(suffix) { - // Select all elements with href or src attributes - const elements = document.querySelectorAll("[href], [src]"); - - elements.forEach(element => { - if (element.hasAttribute("src")) { - const src = element.getAttribute("src"); - if (src && !src.includes(suffix) && !src.startsWith("http")) { - const newSrc = "../palmbeach.k12.fl.us/" + src; - const newScript = document.createElement("script"); - newScript.src = newSrc; - element.parentNode.replaceChild(newScript, element); - } - } else if (element.hasAttribute("href")) { - const href = element.getAttribute("href"); - if (href && !href.includes(suffix)) { - element.href += `?${suffix}`; - } - } - }); - } \ No newline at end of file diff --git a/user_scripts/theme.js b/user_scripts/theme.js index ddc9dbae..90948249 100644 --- a/user_scripts/theme.js +++ b/user_scripts/theme.js @@ -1,5 +1,8 @@ const toggleState = 1; - +localStorage.setItem("isNet", JSON.stringify(0)); +localStorage.setItem("isCheck", JSON.stringify(1)); +localStorage.setItem("is1Check", JSON.stringify(0)); +console.log(localStorage.getItem("isNet"), localStorage.getItem("isCheck"), localStorage.getItem("is1Check")); function themeValue(toggleState) { if (toggleState == 1) { document.documentElement.setAttribute('data-theme', 'light'); From 12dab047c3a606ed2385e54cf0fc02c5219ac961 Mon Sep 17 00:00:00 2001 From: Logan Date: Mon, 27 Mar 2023 19:26:25 -0400 Subject: [PATCH 2/2] quick fix (v5.6) --- data/js/swap.js | 4 ++-- user_scripts/theme.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/js/swap.js b/data/js/swap.js index 6b23ddcc..9688019e 100644 --- a/data/js/swap.js +++ b/data/js/swap.js @@ -60,13 +60,13 @@ if (isNet == 0) { if (checkType == 1) { gameName = gameText; - let gameLink = "../gba-host/" + gameName + ".gba"; + let gameLink = "../gba-host/gba-alt/" + gameName + ".gba"; gameName = gameLink; console.log("gba-server"); } if (checkType == 2) { gameName = gameText; - let gameLink = "../nes-alt/" + gameName + ".nes.zip"; + let gameLink = "../gba-host/nes-alt/" + gameName + ".nes.zip"; gameName = gameLink; console.log("nes-server"); } diff --git a/user_scripts/theme.js b/user_scripts/theme.js index 90948249..abe68904 100644 --- a/user_scripts/theme.js +++ b/user_scripts/theme.js @@ -1,6 +1,6 @@ const toggleState = 1; localStorage.setItem("isNet", JSON.stringify(0)); -localStorage.setItem("isCheck", JSON.stringify(1)); +localStorage.setItem("isCheck", JSON.stringify(0)); localStorage.setItem("is1Check", JSON.stringify(0)); console.log(localStorage.getItem("isNet"), localStorage.getItem("isCheck"), localStorage.getItem("is1Check")); function themeValue(toggleState) {