Battlefield 1: var request=new XMLHttpRequest;request.open("POST","https://companion-api.battlefield.com/jsonrpc/web/api?Emblems.fetchPrivateEmblem",!0),request.onreadystatechange=function(){if(request.readyState==XMLHttpRequest.DONE){var e=JSON.parse(request.responseText);if(e.result){document.body.innerHTML='<h1>Copy that code:</h1><textarea style="width:100%;height:200px;padding:10px;">'+e.result+'</textarea>'}else{alert("Error")}}},request.setRequestHeader("Content-Type","application/json;charset=UTF-8"),request.setRequestHeader("X-GatewaySession",localStorage.gatewaySessionId);data={jsonrpc:"2.0",method:"Emblems.fetchPrivateEmblem",params:{personaId:window.location.href.split("career/")[1].split("/")[0],platform:"pc",slot:window.location.href.split("/").pop()},id:"00000000-0000-0000-0000-000000000000"},request.send(JSON.stringify(data));