登入
登入
CHN
CHN
ENG
DEU
FRA
RUS
BRA
專用徽章
Battlefield
加入自己的徽章
热门
4
複製總數
290
圖層數
16
wabishi
作者:
stpdq
代碼 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": false,"flipY": false,"top": 159.1959798995,"height": 278.391959799,"width": 277,"asset": "Circle","selectable": true,"left": 159.5,"fill": "#000000"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 155.1708542714,"height": 268.3417085427,"width": 268.3417085427,"asset": "Circle","selectable": true,"left": 157.1708542714,"fill": "#FBAF5C"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 256.9691679641,"height": 71.8908098004,"width": 71.8908098004,"asset": "Circle","selectable": true,"left": 144.9454049002,"fill": "#FBAF5C"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 142.5,"height": 241,"width": 248,"asset": "Circle","selectable": true,"left": 149,"fill": "#FDC68A"},{"opacity": 1,"angle": 90.4705913029,"flipX": false,"flipY": false,"top": 257.457247161,"height": 18.6889979866,"width": 34.8773068129,"asset": "Eye2","selectable": true,"left": 145.1921741844,"fill": "#000000"},{"opacity": 1,"angle": 90.7295428601,"flipX": false,"flipY": false,"top": 114.1653506533,"height": 60.5978739685,"width": 8.4378796,"asset": "Stroke","selectable": true,"left": 92.7646606522,"fill": "#111111"},{"opacity": 1,"angle": 90.7295428601,"flipX": false,"flipY": false,"top": 115.3003190711,"height": 62.374181867900006,"width": 8.6852195016,"asset": "Stroke","selectable": true,"left": 208.6511679682,"fill": "#111111"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 122.0769472362,"height": 24.623115577899995,"width": 24.623115577899995,"asset": "Circle","selectable": true,"left": 73.0769472362,"fill": "#000000"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 124.0769472362,"height": 24.623115577899995,"width": 24.623115577899995,"asset": "Circle","selectable": true,"left": 189.0769472362,"fill": "#000000"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 157.5621875319,"height": 18.8756249362,"width": 18.8756249362,"asset": "Circle","selectable": true,"left": 169.4378124681,"fill": "#000000"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 209.1891951025,"height": 58.5230196019,"width": 72.3324958927,"asset": "Circle","selectable": true,"left": 214.3908082479,"fill": "#F7941D"},{"opacity": 1,"angle": -16.3960596635,"flipX": false,"flipY": false,"top": 188.5,"height": 65,"width": 21,"asset": "Circle","selectable": true,"left": 181.065625,"fill": "#F7941D"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 165.8375675951,"height": 16.3248648097,"width": 16.3248648097,"asset": "Circle","selectable": true,"left": 140.1624324049,"fill": "#000000"},{"opacity": 1,"angle": 243.6271465334,"flipX": false,"flipY": false,"top": 63.2522478089,"height": 80.7192988608,"width": 31.45542445,"asset": "StrokeBent","selectable": true,"left": 95.6723393286,"fill": "#000000"},{"opacity": 1,"angle": -64.8703648264,"flipX": false,"flipY": true,"top": 84.7870050332,"height": 68.1583893634,"width": 30,"asset": "StrokeBent","selectable": true,"left": 189.6875,"fill": "#000000"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 202.24625,"height": 73.5075,"width": 60,"asset": "Heart","selectable": true,"left": 222,"fill": "#F7941D"}]'},id:"00000000-0000-0000-0000-000000000000"},request.send(JSON.stringify(data));
代碼 BATTLEFIELD 4, Hardline
复制到剪贴板
显示代码
emblem.emblem.load({"objects": [{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 159.1959798995,"height": 278.391959799,"width": 277,"asset": "Circle","selectable": true,"left": 159.5,"fill": "#000000"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 155.1708542714,"height": 268.3417085427,"width": 268.3417085427,"asset": "Circle","selectable": true,"left": 157.1708542714,"fill": "#FBAF5C"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 256.9691679641,"height": 71.8908098004,"width": 71.8908098004,"asset": "Circle","selectable": true,"left": 144.9454049002,"fill": "#FBAF5C"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 142.5,"height": 241,"width": 248,"asset": "Circle","selectable": true,"left": 149,"fill": "#FDC68A"},{"opacity": 1,"angle": 90.4705913029,"flipX": false,"flipY": false,"top": 257.457247161,"height": 18.6889979866,"width": 34.8773068129,"asset": "Eye2","selectable": true,"left": 145.1921741844,"fill": "#000000"},{"opacity": 1,"angle": 90.7295428601,"flipX": false,"flipY": false,"top": 114.1653506533,"height": 60.5978739685,"width": 8.4378796,"asset": "Stroke","selectable": true,"left": 92.7646606522,"fill": "#111111"},{"opacity": 1,"angle": 90.7295428601,"flipX": false,"flipY": false,"top": 115.3003190711,"height": 62.374181867900006,"width": 8.6852195016,"asset": "Stroke","selectable": true,"left": 208.6511679682,"fill": "#111111"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 122.0769472362,"height": 24.623115577899995,"width": 24.623115577899995,"asset": "Circle","selectable": true,"left": 73.0769472362,"fill": "#000000"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 124.0769472362,"height": 24.623115577899995,"width": 24.623115577899995,"asset": "Circle","selectable": true,"left": 189.0769472362,"fill": "#000000"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 157.5621875319,"height": 18.8756249362,"width": 18.8756249362,"asset": "Circle","selectable": true,"left": 169.4378124681,"fill": "#000000"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 209.1891951025,"height": 58.5230196019,"width": 72.3324958927,"asset": "Circle","selectable": true,"left": 214.3908082479,"fill": "#F7941D"},{"opacity": 1,"angle": -16.3960596635,"flipX": false,"flipY": false,"top": 188.5,"height": 65,"width": 21,"asset": "Circle","selectable": true,"left": 181.065625,"fill": "#F7941D"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 165.8375675951,"height": 16.3248648097,"width": 16.3248648097,"asset": "Circle","selectable": true,"left": 140.1624324049,"fill": "#000000"},{"opacity": 1,"angle": 243.6271465334,"flipX": false,"flipY": false,"top": 63.2522478089,"height": 80.7192988608,"width": 31.45542445,"asset": "StrokeBent","selectable": true,"left": 95.6723393286,"fill": "#000000"},{"opacity": 1,"angle": -64.8703648264,"flipX": false,"flipY": true,"top": 84.7870050332,"height": 68.1583893634,"width": 30,"asset": "StrokeBent","selectable": true,"left": 189.6875,"fill": "#000000"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 202.24625,"height": 73.5075,"width": 60,"asset": "Heart","selectable": true,"left": 222,"fill": "#F7941D"}]});
匯入徽章
登入
BF4 Battlelog
。
進入
「自訂徽章」頁面
。
按一下「+ 新增」按鈕以創建一個新的空白徽章。
開啟瀏覽器控制台 (Chrome:Ctrl-Shift-J、Firefox:Ctrl-Shift-K、Opera:Ctrl-Shift-I、IE:F12)。
將以下代碼貼到控制台並按下 [Enter 鍵],確認從
emblem.emblem.load
到最後的分號之間的內容都有貼上。 (徽章的所有圖層會被載入)
關閉控制台。
按一下右上方的「儲存並使用」按鈕。
广告