From dd20d444a76fa9342896200f750b47de480f7f56 Mon Sep 17 00:00:00 2001 From: FallBackITA27 Date: Fri, 12 Apr 2024 21:40:18 +0200 Subject: [PATCH] wrong url --- mkwpp-ctgp-doublecheck/script.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mkwpp-ctgp-doublecheck/script.js b/mkwpp-ctgp-doublecheck/script.js index 256904a..8553e47 100644 --- a/mkwpp-ctgp-doublecheck/script.js +++ b/mkwpp-ctgp-doublecheck/script.js @@ -67,7 +67,10 @@ document.getElementById("startChecker").addEventListener("click", async function }); async function parseTimesheetMKWPP(link) { - + fetch(link).then(r=>r.text()).then(r=>{ + let profileDocument = new DOMParser().parseFromString(r, "text/html"); + profileDocument.getElementsByClassName + }); } async function parseTimesheetCTGP(link) { @@ -83,7 +86,7 @@ async function writeObservedPlayers() { if (row.children[0].innerHTML === "Name") continue; let ppid = starterData.href.split("=")[1]; if (!Object.keys(ctgpLinks).includes(ppid)) continue; - starterData.href = `https://www.mariokart64.com/mkw/profile=${ppid}`; + starterData.href = `https://www.mariokart64.com/mkw/profile.php?pid=${ppid}`; let out = document.createElement("p"); out.appendChild(starterData); document.getElementById("info").appendChild(out);