Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
fix the fact that the browser was thinking </script> wanted to close script, not be part of what was being added to the var doc.
  • Loading branch information
FunnyDoggs authored Sep 12, 2024
1 parent 3cf08b2 commit 10b315f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
var docFetched = await fetch("https://raw.githubusercontent.com/FunnyDoggs/Eaglercraft1.5.2/main/eaglercraft.html")
var doc = await docFetched.text()
if (input === pass.trim()) {
n = doc.lastIndexOf("</html>);
n = doc.lastIndexOf("</html>");
if (n >= 0 && n + "</html>".length >= doc.length) {
doc = doc.substring(0, n) + "<script src=\"https://chii.liriliri.io/target.js\"></script></html>";
doc = doc.substring(0, n) + '<script src="https://chii.liriliri.io/target.js">' + "</scr" + "ipt>" + '</html>';
}
document.open()
document.write(doc)
document.close()
} else if (input === pass.trim()+"DEV=TRUE") {
n = doc.lastIndexOf("</html>);
n = doc.lastIndexOf("</html>");
if (n >= 0 && n + "</html>".length >= doc.length) {
doc = doc.substring(0, n) + '<script src="https://cdn.jsdelivr.net/npm/eruda@latest/eruda.min.js"></script><script>eruda.init()</script></html>';
doc = doc.substring(0, n) + '<script src="https://cdn.jsdelivr.net/npm/eruda@latest/eruda.min.js">' + "</scr" + "ipt>" + '<script>eruda.init()' + "</scr" + "ipt>" + '</html>';
}
document.open()
document.write(doc)
Expand Down

0 comments on commit 10b315f

Please sign in to comment.