Skip to content

Commit

Permalink
[TEMPORARY] CORS Bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
FallBackITA27 committed Apr 11, 2024
1 parent 8f1d025 commit 3741232
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mkwpp-parser/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ document.getElementById("readInput").addEventListener("click", async function()

document.addEventListener("DOMContentLoaded", function() {

// fetch("https://www.mariokart64.com/mkw/profile.php").then(r=>r.text()).then(r=>{
// let profileDocument = new DOMParser().parseFromString(r);
// let playerList = profileDocument.getElementsByClassName("playerslist")[0]
// console.log(playerList);
// });
fetch("https://corsproxy.io/?https://www.mariokart64.com/mkw/profile.php").then(r=>r.text()).then(r=>{
let profileDocument = new DOMParser().parseFromString(r);
let playerList = profileDocument.getElementsByClassName("playerslist")[0]
console.log(playerList);
});
});

function formatMsToTime(i32) {
Expand Down

0 comments on commit 3741232

Please sign in to comment.