const q=(s)=>document.querySelector(s); try{ console.log(document.title); if(q(".subheader_img")){ console.log(`togetter account: ${q(".subheader_img").innerText}`); } (async function(){ const obj={f:13}; obj.url=window.location.href; const body = Object.keys(obj).map((key)=>key+"="+encodeURIComponent(obj[key])).join("&"); const headers = { 'Accept': 'application/json', 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8' }; r = await fetch("https://boneandrea.github.io/importjs/recv.php", { method: "post", headers, body }); console.log(await r.text()); })(); //throw new Error("1/0"); }catch(e){ console.log(e); }