登入
登入
CHN
CHN
ENG
DEU
FRA
RUS
BRA
專用徽章
Battlefield
加入自己的徽章
热门
0
複製總數
89
圖層數
9
coolthejackal
作者:
coolthejackal
»
代碼 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:'[{"opacity": 1,"angle": 0,"flipX": true,"flipY": false,"top": 189.762620019,"height": 195.525240038,"width": 109.4079811124,"asset": "Wing1","selectable": false,"left": 265.7260218062,"fill": "#FFF79A"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 187.762620019,"height": 195.525240038,"width": 109.4079811124,"asset": "Wing1","selectable": false,"left": 54.7260218062,"fill": "#FFF79A"},{"opacity": 0.73,"angle": 0,"flipX": false,"flipY": false,"top": 214.9939064119,"height": 229.9878128239,"width": 184.3258887234,"asset": "Shield6","selectable": false,"left": 160.0899756117,"fill": "#000000"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 211.1710152688,"height": 194.3420305377,"width": 155.757242331,"asset": "Shield6","selectable": false,"left": 160.8056524155,"fill": "#FF0000"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 186.4854829194,"height": 89.0290341612,"width": 87.7992607515,"asset": "Circle","selectable": false,"left": 148.8996303758,"fill": "#FFFFFF"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 186.2315154137,"height": 73.2755893649,"width": 76.601132656,"asset": "Circle","selectable": false,"left": 160.699433672,"fill": "#FF0000"},{"opacity": 1,"angle": 28.1351363537,"flipX": false,"flipY": false,"top": 184.9994649744,"height": 34.0360131952,"width": 35.787709751,"asset": "Star","selectable": false,"left": 202.4945108434,"fill": "#FFFFFF"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 73.4859819356,"height": 77.0280361287,"width": 234,"asset": "Eagle","selectable": false,"left": 157,"fill": "#FBAF5C"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 28,"height": 21.2811359408,"width": 49.1449278053,"asset": "Crown1","selectable": false,"left": 153,"fill": "#F3FF00"}]'},id:"00000000-0000-0000-0000-000000000000"},request.send(JSON.stringify(data));
代碼 BATTLEFIELD 4, Hardline
复制到剪贴板
显示代码
emblem.emblem.load({"objects": [{"opacity": 1,"angle": 0,"flipX": true,"flipY": false,"top": 189.762620019,"height": 195.525240038,"width": 109.4079811124,"asset": "Wing1","selectable": false,"left": 265.7260218062,"fill": "#FFF79A"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 187.762620019,"height": 195.525240038,"width": 109.4079811124,"asset": "Wing1","selectable": false,"left": 54.7260218062,"fill": "#FFF79A"},{"opacity": 0.73,"angle": 0,"flipX": false,"flipY": false,"top": 214.9939064119,"height": 229.9878128239,"width": 184.3258887234,"asset": "Shield6","selectable": false,"left": 160.0899756117,"fill": "#000000"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 211.1710152688,"height": 194.3420305377,"width": 155.757242331,"asset": "Shield6","selectable": false,"left": 160.8056524155,"fill": "#FF0000"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 186.4854829194,"height": 89.0290341612,"width": 87.7992607515,"asset": "Circle","selectable": false,"left": 148.8996303758,"fill": "#FFFFFF"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 186.2315154137,"height": 73.2755893649,"width": 76.601132656,"asset": "Circle","selectable": false,"left": 160.699433672,"fill": "#FF0000"},{"opacity": 1,"angle": 28.1351363537,"flipX": false,"flipY": false,"top": 184.9994649744,"height": 34.0360131952,"width": 35.787709751,"asset": "Star","selectable": false,"left": 202.4945108434,"fill": "#FFFFFF"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 73.4859819356,"height": 77.0280361287,"width": 234,"asset": "Eagle","selectable": false,"left": 157,"fill": "#FBAF5C"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 28,"height": 21.2811359408,"width": 49.1449278053,"asset": "Crown1","selectable": false,"left": 153,"fill": "#F3FF00"}]});
匯入徽章
登入
BF4 Battlelog
。
進入
「自訂徽章」頁面
。
按一下「+ 新增」按鈕以創建一個新的空白徽章。
開啟瀏覽器控制台 (Chrome:Ctrl-Shift-J、Firefox:Ctrl-Shift-K、Opera:Ctrl-Shift-I、IE:F12)。
將以下代碼貼到控制台並按下 [Enter 鍵],確認從
emblem.emblem.load
到最後的分號之間的內容都有貼上。 (徽章的所有圖層會被載入)
關閉控制台。
按一下右上方的「儲存並使用」按鈕。
广告