登入
登入
CHN
CHN
ENG
DEU
FRA
RUS
BRA
專用徽章
Battlefield
加入自己的徽章
热门
2
複製總數
22
圖層數
8
sunxiaochuan
作者:
Altania Smith
»
代碼 BATTLEFIELD 1
复制到剪贴板
显示代码
var request=new XMLHttpRequest;request.open("POST","https://companion-api.battlefield.com/jsonrpc/web/api?Emblems.newPrivateEmblem",!0),request.onreadystatechange=function(){if(request.readyState==XMLHttpRequest.DONE){var e=JSON.parse(request.responseText);e.result?window.location.href=window.location.href.replace("/new","/edit/")+e.result.slot:alert("Error")}},request.setRequestHeader("Content-Type","application/json;charset=UTF-8"),request.setRequestHeader("X-GatewaySession",localStorage.gatewaySessionId),data={jsonrpc:"2.0",method:"Emblems.newPrivateEmblem",params:{data:'[{"asset":"Square","opacity":1,"angle":0,"flipX":false,"flipY":false,"top":70.86834657539441,"left":71.06796116504854,"height":514.6136059807342,"width":514.6136059807342,"fill":"#ffffff"},{"asset":"Square","opacity":1,"angle":0,"flipX":false,"flipY":false,"top":238.18635514638956,"left":160,"height":193.32200726259103,"width":222.66255499089803,"fill":"#000000"},{"asset":"Triangle","opacity":1,"angle":0,"flipX":false,"flipY":true,"top":170.56311153671115,"left":149.60466995979974,"height":121.14328921419902,"width":146.28349230127426,"fill":"#ffffff"},{"asset":"Square","opacity":1,"angle":0,"flipX":false,"flipY":false,"top":90.58487086620146,"left":149.60466995979974,"height":100.26096973604366,"width":100.26096973604366,"fill":"#e4995e"},{"asset":"Square","opacity":1,"angle":0,"flipX":false,"flipY":false,"top":265.66445359905947,"left":108.31691112333131,"height":31.078805275333735,"width":31.078805275333735,"fill":"#e4995e"},{"asset":"Square","opacity":1,"angle":0,"flipX":false,"flipY":false,"top":250.92968987029735,"left":202.86371027381674,"height":31.078805275333735,"width":31.078805275333735,"fill":"#e4995e"},{"asset":"Square","opacity":0.8200000000000001,"angle":0,"flipX":false,"flipY":false,"top":58.38524679535801,"left":149.60466995979974,"height":21.85940344356796,"width":124.51574825546116,"fill":"#ffffff"},{"asset":"Circle","opacity":1,"angle":0,"flipX":false,"flipY":false,"top":57.41520245258955,"left":149.60466995979974,"height":14.43845180737744,"width":14.43845180737744,"fill":"#d80000"}]'},id:"00000000-0000-0000-0000-000000000000"},request.send(JSON.stringify(data));
代碼 BATTLEFIELD 4, Hardline
复制到剪贴板
显示代码
emblem.emblem.load({"objects":varrequest=newXMLHttpRequest;request.open("POST","https://companion-api.battlefield.com/jsonrpc/web/api?Emblems.newPrivateEmblem",!0),request.onreadystatechange=function(){if(request.readyState==XMLHttpRequest.DONE){vare=JSON.parse(request.responseText);e.result?window.location.href=window.location.href.replace("/new","/edit/")+e.result.slot:alert("Error")}},request.setRequestHeader("Content-Type","application/json;charset=UTF-8"),request.setRequestHeader("X-GatewaySession",localStorage.gatewaySessionId),data={jsonrpc:"2.0",method:"Emblems.newPrivateEmblem",params:{data:'[{"asset":"Square","opacity":1,"angle":0,"flipX":false,"flipY":false,"top":70.86834657539441,"left":71.06796116504854,"height":514.6136059807342,"width":514.6136059807342,"fill":"#ffffff"},{"asset":"Square","opacity":1,"angle":0,"flipX":false,"flipY":false,"top":238.18635514638956,"left":160,"height":193.32200726259103,"width":222.66255499089803,"fill":"#000000"},{"asset":"Triangle","opacity":1,"angle":0,"flipX":false,"flipY":true,"top":170.56311153671115,"left":149.60466995979974,"height":121.14328921419902,"width":146.28349230127426,"fill":"#ffffff"},{"asset":"Square","opacity":1,"angle":0,"flipX":false,"flipY":false,"top":90.58487086620146,"left":149.60466995979974,"height":100.26096973604366,"width":100.26096973604366,"fill":"#e4995e"},{"asset":"Square","opacity":1,"angle":0,"flipX":false,"flipY":false,"top":265.66445359905947,"left":108.31691112333131,"height":31.078805275333735,"width":31.078805275333735,"fill":"#e4995e"},{"asset":"Square","opacity":1,"angle":0,"flipX":false,"flipY":false,"top":250.92968987029735,"left":202.86371027381674,"height":31.078805275333735,"width":31.078805275333735,"fill":"#e4995e"},{"asset":"Square","opacity":0.8200000000000001,"angle":0,"flipX":false,"flipY":false,"top":58.38524679535801,"left":149.60466995979974,"height":21.85940344356796,"width":124.51574825546116,"fill":"#ffffff"},{"asset":"Circle","opacity":1,"angle":0,"flipX":false,"flipY":false,"top":57.41520245258955,"left":149.60466995979974,"height":14.43845180737744,"width":14.43845180737744,"fill":"#d80000"}]'},id:"00000000-0000-0000-0000-000000000000"},request.send(JSON.stringify(data));]});
匯入徽章
登入
BF4 Battlelog
。
進入
「自訂徽章」頁面
。
按一下「+ 新增」按鈕以創建一個新的空白徽章。
開啟瀏覽器控制台 (Chrome:Ctrl-Shift-J、Firefox:Ctrl-Shift-K、Opera:Ctrl-Shift-I、IE:F12)。
將以下代碼貼到控制台並按下 [Enter 鍵],確認從
emblem.emblem.load
到最後的分號之間的內容都有貼上。 (徽章的所有圖層會被載入)
關閉控制台。
按一下右上方的「儲存並使用」按鈕。
标签
sunxiaochuan
xiaochuan
tianhuang
广告