Add local debugger

This commit is contained in:
2025-02-09 15:46:27 +01:00
parent 502349b4ec
commit 46d5e7521f
4 changed files with 341 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
(async () => {
const file = await fetch("../dist/user-script.user.js").then((e => e.text()));
while (true) {
await new Promise(resolve => setTimeout(resolve), 100);
const file2 = await fetch("../dist/user-script.user.js")
.then((e => e.status === 200 ? e.text() : Promise.resolve(file)));
if (file !== file2) {
console.log(file);
break;
}
}
await new Promise(resolve => setTimeout(resolve), 1000);
location.reload();
})();