剩下的没啥好说的了

战地1小助手:
导入代码var asset = prompt("请输入您的图章代码");if(asset.length != 0) fetch("/jsonrpc/web/api",{method:"POST",headers:{"X-GatewaySession":localStorage.gatewaySessionId},body:JSON.stringify({jsonrpc:"2.0",method:"Emblems.newPrivateEmblem",params:{data:asset}})}).then(res => res.json()).then(res => (console.log("图章位置:"+res.result.slot),console.log("缩略图:"+(res.result.imageUrlTemplate = res.result.imageUrlTemplate .replaceAll("[SIZE]","320"),res.result.imageUrlTemplate .replaceAll("[FORMAT]","png"))))),location.href="
https://companion-api.battlefield.com/companion/emblems";else console.log("用户未输入");
导出代码var mode = 0; //默认导出方式: 0:使用时选择 1:默认使用图层导出模式 2:默认使用分享码导出方式 3:全都要var Exp_AutoFill = 1;//控制输出的信息是否直接包含一键导入脚本(默认自带完成自动重定向)[实际上就是Studio版本扒过来的]var web_slot = window.location.pathname.split("/").pop();clear();if (!isNaN(web_slot)) //判断是否为图章页面(检测页面序号是否为数字){if(mode == 0)mode = prompt("想以何种类型导出?(1.图层代码 2.分享码 3.全部)",); //询问导出类型switch(mode){case "1":console.info("序号:"+web_slot);fetchPrivateEmblem(); break;//图层导出方法case "2":console.info("序号:"+web_slot);shareGalleryEmblem(); break;//分享码导出方法case "3": console.info("序号:"+web_slot);fetchPrivateEmblem();shareGalleryEmblem();break;//全部输出模式default: alert("用户未输入/无效的输入");console.warn("用户输入无效,数据为 "+mode);break;//如果输入都不匹配则跳过}}else //非图章界面,报警,退出{console.warn("当前未处于任何选择图章界面/不支持分享的图章"); //警报}function fetchPrivateEmblem(){fetch("/jsonrpc/web/api",{method:"POST",headers:{"X-GatewaySession":localStorage.gatewaySessionId},body:JSON.stringify({jsonrpc:"2.0",method:"Emblems.fetchPrivateEmblem",params:{personaId:localStorage.personaId,platform:"PC",slot:window.location.pathname.split("/").pop()//获取页面图章ID}})}).then(res => res.json()).then(res => {if(Exp_AutoFill)console.info(print_Privatecode(res.result));else console.log(res.result);});}function shareGalleryEmblem(){fetch("/jsonrpc/web/api",{method:"POST",headers:{"X-GatewaySession":localStorage.gatewaySessionId},body:JSON.stringify({jsonrpc:"2.0",method:"Emblems.shareGalleryEmblem",params:{slot:window.location.pathname.split("/").pop()}})}).then(res => res.json()).then(res => {if(Exp_AutoFill) console.info(print_Privatecode(res.result.shareKey));else{console.info("分享码:"+res.result.shareKey),alert(res.result.shareKey);}});}function print_Privatecode(embeds_code)/* 生成一键复制脚本,带重定向 */{if(embeds_code.match(/asset/)){var method = "newPrivateEmblem";var data = "data";var slot_data = "\"career/0/emblems/preview/\"+res.result.slot";}else if(embeds_code.match(/------/)){var method = "importSharedEmblem";var data = "shareKey";var slot_data = "\"career/0/emblems/preview/\"+res.result";}else return ("错误:特征匹配失败,匹配源数据为 "+embeds_code);return("fetch(\"/jsonrpc/web/api\",{method:\"POST\",headers:{\"X-GatewaySession\":localStorage.gatewaySessionId,},body:JSON.stringify({jsonrpc:\"2.0\",method:\"Emblems."+method+"\",params:{"+data+":\'"+embeds_code+"\'}})}).then(res => res.json()).then(res =>{if(res.result!=null)location.href="+slot_data+";else alert(\"错误!\")})");}