Skip to content

Commit

Permalink
desperate
Browse files Browse the repository at this point in the history
  • Loading branch information
FallBackITA27 committed Apr 11, 2024
1 parent 1401540 commit 3e08a31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mkwpp-parser/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,16 @@ let constants = {
]
}

document.addEventListener("DOMContentLoaded",async function() {
async function loadStuff() {
console.log("enters");
await fetch("https://corsproxy.io/?https://www.mariokart64.com/mkw/profile.php").then(r=>r.text()).then(r=>{
console.log(r);
let profileDocument = new DOMParser().parseFromString(r);
let playerList = profileDocument.getElementsByClassName("playerslist")[0].children[0];
console.log(playerList);
});
}, false);
}
loadStuff();

function writeToOutput(d) {
if (d == null) return;
Expand Down

0 comments on commit 3e08a31

Please sign in to comment.