Skip to content

Commit

Permalink
userscript fix update thing
Browse files Browse the repository at this point in the history
  • Loading branch information
zastlx committed Apr 26, 2024
1 parent 0e4e758 commit b7d01c7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions alt/puttpartyfix.user..js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// ==UserScript==
// @name putt party fix
// @version 2024-04-23
// @description gay
// @description real
// @match https://945737671223947305.discordsays.com/*
// ==/UserScript==

// go to https://945737671223947305.discordsays.com/versions/Prod-38-CLaa997/index.html
// these require you to run `bunx serve . -p 5050` in the root of the project

/* eslint-disable */
const startBtn = document.createElement("button");
Expand Down Expand Up @@ -33,9 +34,21 @@ startBtn.onclick = () => {
}
}
});
cc.game.run()
fetch("http://localhost:5050/dist/elficia.js").then(a=>a.text()).then(eval)
cc.game.run();
});
};

const elf = document.createElement("button");
elf.textContent = "Elficia";
elf.style.position = "absolute";
elf.style.top = "0";
elf.style.left = "0";
elf.style.zIndex = "999";

elf.onclick = () => fetch("http://localhost:5050/dist/elficia.js").then(a=>a.text()).then(() => {
elf.remove();
fetch("http://localhost:5050/dist/elficia.js").then(a => a.text()).then(eval);
});

document.body.appendChild(elf);
document.body.appendChild(startBtn);
Binary file added bun.lockb
Binary file not shown.

0 comments on commit b7d01c7

Please sign in to comment.