登入
登入
CHN
CHN
ENG
DEU
FRA
RUS
BRA
專用徽章
Battlefield
加入自己的徽章
热门
0
複製總數
39
圖層數
20
KSA
作者:
Dark 757
»
代碼 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":318.7774762031558,"flipX":false,"flipY":false,"top":223.75,"height":655.5156331674278,"width":736.0559656211758,"asset":"Line","selectable":true,"left":126.77049894026673,"fill":"#1A7B30"},{"opacity":1,"angle":318.7774762031558,"flipX":false,"flipY":false,"top":246.7592834455536,"height":15.008513914550612,"width":150.02018872634693,"asset":"Line","selectable":true,"left":177.09803539870103,"fill":"#FFFFFF"},{"opacity":1,"angle":219.72350648225236,"flipX":false,"flipY":false,"top":247.98426110478616,"height":14.953493306412113,"width":157.10595924824366,"asset":"Line","selectable":true,"left":152.0927600131227,"fill":"#FFFFFF"},{"opacity":1,"angle":0,"flipX":false,"flipY":false,"top":203.75,"height":23.125000000000004,"width":59.477526246719194,"asset":"Emblem71","selectable":true,"left":160,"fill":"#FFFFFF"},{"opacity":1,"angle":90,"flipX":true,"flipY":false,"top":99.2361068725586,"height":112.5,"width":107.50000000000001,"asset":"CrescentMoon","selectable":true,"left":160.625,"fill":"#FFFFFF"},{"opacity":1,"angle":90,"flipX":true,"flipY":false,"top":81.7361068725586,"height":137.5,"width":97.5,"asset":"CrescentMoon","selectable":true,"left":160.3125,"fill":"#FFFFFF"},{"opacity":1,"angle":90,"flipX":true,"flipY":false,"top":71.875,"height":153.125,"width":86.875,"asset":"CrescentMoon","selectable":true,"left":160.625,"fill":"#FFFFFF"},{"opacity":1,"angle":90,"flipX":true,"flipY":false,"top":55,"height":163.125,"width":79.375,"asset":"CrescentMoon","selectable":true,"left":160.625,"fill":"#FFFFFF"},{"opacity":1,"angle":90,"flipX":true,"flipY":false,"top":40.677080154418945,"height":176.875,"width":68.3680534362793,"asset":"CrescentMoon","selectable":true,"left":160,"fill":"#FFFFFF"},{"opacity":1,"angle":301.5858305636558,"flipX":false,"flipY":false,"top":209.375,"height":100.40493434240952,"width":47.3543835542541,"asset":"CrescentMoon","selectable":true,"left":81.25,"fill":"#FFFFFF"},{"opacity":1,"angle":226.0132876517399,"flipX":false,"flipY":false,"top":211.25,"height":99.04090743635727,"width":46.711062051077356,"asset":"CrescentMoon","selectable":true,"left":240.625,"fill":"#FFFFFF"},{"opacity":1,"angle":318.7774762031558,"flipX":false,"flipY":false,"top":239.43236471058952,"height":45.19966452962677,"width":57.28321926022861,"asset":"Line","selectable":true,"left":230.6721258769403,"fill":"#1A7B30"},{"opacity":1,"angle":219.97157100748305,"flipX":false,"flipY":false,"top":242.6728776094877,"height":45.19966452962677,"width":56.92359422289959,"asset":"Line","selectable":true,"left":98.93492758976208,"fill":"#1A7B30"},{"opacity":1,"angle":113.7960811209679,"flipX":false,"flipY":false,"top":294.375,"height":37.165303709339774,"width":22.973119589805364,"asset":"Drop","selectable":true,"left":108.75,"fill":"#FFFFFF"},{"opacity":1,"angle":65.95231612878071,"flipX":true,"flipY":true,"top":296.25,"height":37.165303709339774,"width":22.973119589805364,"asset":"Drop","selectable":true,"left":225,"fill":"#FFFFFF"},{"opacity":1,"angle":234.46634968740508,"flipX":true,"flipY":false,"top":277.73746079347296,"height":12.393912318143872,"width":38.34231077366189,"asset":"Wingpart","selectable":true,"left":124.93668074603818,"fill":"#FFFFFF"},{"opacity":1,"angle":234.94749696820202,"flipX":false,"flipY":true,"top":293.125,"height":12.393912318143872,"width":38.34231077366189,"asset":"Wingpart","selectable":true,"left":136.25,"fill":"#FFFFFF"},{"opacity":1,"angle":303.6931430785234,"flipX":false,"flipY":false,"top":295,"height":12.393912318143872,"width":38.34231077366189,"asset":"Wingpart","selectable":true,"left":196.25,"fill":"#FFFFFF"},{"opacity":1,"angle":127.16525332629286,"flipX":false,"flipY":false,"top":280,"height":12.393912318143872,"width":38.34231077366189,"asset":"Wingpart","selectable":true,"left":206.875,"fill":"#FFFFFF"},{"opacity":1,"angle":0,"flipX":false,"flipY":false,"top":122.5,"height":159.50155763239874,"width":17.512655763239877,"asset":"Stroke","selectable":true,"left":159.69382788161994,"fill":"#FFFFFF"}]'},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:'[{"opacity":1,"angle":318.7774762031558,"flipX":false,"flipY":false,"top":223.75,"height":655.5156331674278,"width":736.0559656211758,"asset":"Line","selectable":true,"left":126.77049894026673,"fill":"#1A7B30"},{"opacity":1,"angle":318.7774762031558,"flipX":false,"flipY":false,"top":246.7592834455536,"height":15.008513914550612,"width":150.02018872634693,"asset":"Line","selectable":true,"left":177.09803539870103,"fill":"#FFFFFF"},{"opacity":1,"angle":219.72350648225236,"flipX":false,"flipY":false,"top":247.98426110478616,"height":14.953493306412113,"width":157.10595924824366,"asset":"Line","selectable":true,"left":152.0927600131227,"fill":"#FFFFFF"},{"opacity":1,"angle":0,"flipX":false,"flipY":false,"top":203.75,"height":23.125000000000004,"width":59.477526246719194,"asset":"Emblem71","selectable":true,"left":160,"fill":"#FFFFFF"},{"opacity":1,"angle":90,"flipX":true,"flipY":false,"top":99.2361068725586,"height":112.5,"width":107.50000000000001,"asset":"CrescentMoon","selectable":true,"left":160.625,"fill":"#FFFFFF"},{"opacity":1,"angle":90,"flipX":true,"flipY":false,"top":81.7361068725586,"height":137.5,"width":97.5,"asset":"CrescentMoon","selectable":true,"left":160.3125,"fill":"#FFFFFF"},{"opacity":1,"angle":90,"flipX":true,"flipY":false,"top":71.875,"height":153.125,"width":86.875,"asset":"CrescentMoon","selectable":true,"left":160.625,"fill":"#FFFFFF"},{"opacity":1,"angle":90,"flipX":true,"flipY":false,"top":55,"height":163.125,"width":79.375,"asset":"CrescentMoon","selectable":true,"left":160.625,"fill":"#FFFFFF"},{"opacity":1,"angle":90,"flipX":true,"flipY":false,"top":40.677080154418945,"height":176.875,"width":68.3680534362793,"asset":"CrescentMoon","selectable":true,"left":160,"fill":"#FFFFFF"},{"opacity":1,"angle":301.5858305636558,"flipX":false,"flipY":false,"top":209.375,"height":100.40493434240952,"width":47.3543835542541,"asset":"CrescentMoon","selectable":true,"left":81.25,"fill":"#FFFFFF"},{"opacity":1,"angle":226.0132876517399,"flipX":false,"flipY":false,"top":211.25,"height":99.04090743635727,"width":46.711062051077356,"asset":"CrescentMoon","selectable":true,"left":240.625,"fill":"#FFFFFF"},{"opacity":1,"angle":318.7774762031558,"flipX":false,"flipY":false,"top":239.43236471058952,"height":45.19966452962677,"width":57.28321926022861,"asset":"Line","selectable":true,"left":230.6721258769403,"fill":"#1A7B30"},{"opacity":1,"angle":219.97157100748305,"flipX":false,"flipY":false,"top":242.6728776094877,"height":45.19966452962677,"width":56.92359422289959,"asset":"Line","selectable":true,"left":98.93492758976208,"fill":"#1A7B30"},{"opacity":1,"angle":113.7960811209679,"flipX":false,"flipY":false,"top":294.375,"height":37.165303709339774,"width":22.973119589805364,"asset":"Drop","selectable":true,"left":108.75,"fill":"#FFFFFF"},{"opacity":1,"angle":65.95231612878071,"flipX":true,"flipY":true,"top":296.25,"height":37.165303709339774,"width":22.973119589805364,"asset":"Drop","selectable":true,"left":225,"fill":"#FFFFFF"},{"opacity":1,"angle":234.46634968740508,"flipX":true,"flipY":false,"top":277.73746079347296,"height":12.393912318143872,"width":38.34231077366189,"asset":"Wingpart","selectable":true,"left":124.93668074603818,"fill":"#FFFFFF"},{"opacity":1,"angle":234.94749696820202,"flipX":false,"flipY":true,"top":293.125,"height":12.393912318143872,"width":38.34231077366189,"asset":"Wingpart","selectable":true,"left":136.25,"fill":"#FFFFFF"},{"opacity":1,"angle":303.6931430785234,"flipX":false,"flipY":false,"top":295,"height":12.393912318143872,"width":38.34231077366189,"asset":"Wingpart","selectable":true,"left":196.25,"fill":"#FFFFFF"},{"opacity":1,"angle":127.16525332629286,"flipX":false,"flipY":false,"top":280,"height":12.393912318143872,"width":38.34231077366189,"asset":"Wingpart","selectable":true,"left":206.875,"fill":"#FFFFFF"},{"opacity":1,"angle":0,"flipX":false,"flipY":false,"top":122.5,"height":159.50155763239874,"width":17.512655763239877,"asset":"Stroke","selectable":true,"left":159.69382788161994,"fill":"#FFFFFF"}]'},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
到最後的分號之間的內容都有貼上。 (徽章的所有圖層會被載入)
關閉控制台。
按一下右上方的「儲存並使用」按鈕。
标签
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":318.7774762031558
"flipX":false
"flipY":false
"top":223.75
"height":655.5156331674278
"width":736.0559656211758
"asset":"Line"
"selectable":true
"left":126.77049894026673
"fill":"#1A7B30"}
{"opacity":1
"angle":318.7774762031558
"flipX":false
"flipY":false
"top":246.7592834455536
"height":15.008513914550612
"width":150.02018872634693
"asset":"Line"
"selectable":true
"left":177.09803539870103
"fill":"#FFFFFF"}
{"opacity":1
"angle":219.72350648225236
"flipX":false
"flipY":false
"top":247.98426110478616
"height":14.953493306412113
"width":157.10595924824366
"asset":"Line"
"selectable":true
"left":152.0927600131227
"fill":"#FFFFFF"}
{"opacity":1
"angle":0
"flipX":false
"flipY":false
"top":203.75
"height":23.125000000000004
"width":59.477526246719194
"asset":"Emblem71"
"selectable":true
"left":160
"fill":"#FFFFFF"}
{"opacity":1
"angle":90
"flipX":true
"flipY":false
"top":99.2361068725586
"height":112.5
"width":107.50000000000001
"asset":"CrescentMoon"
"selectable":true
"left":160.625
"fill":"#FFFFFF"}
{"opacity":1
"angle":90
"flipX":true
"flipY":false
"top":81.7361068725586
"height":137.5
"width":97.5
"asset":"CrescentMoon"
"selectable":true
"left":160.3125
"fill":"#FFFFFF"}
{"opacity":1
"angle":90
"flipX":true
"flipY":false
"top":71.875
"height":153.125
"width":86.875
"asset":"CrescentMoon"
"selectable":true
"left":160.625
"fill":"#FFFFFF"}
{"opacity":1
"angle":90
"flipX":true
"flipY":false
"top":55
"height":163.125
"width":79.375
"asset":"CrescentMoon"
"selectable":true
"left":160.625
"fill":"#FFFFFF"}
{"opacity":1
"angle":90
"flipX":true
"flipY":false
"top":40.677080154418945
"height":176.875
"width":68.3680534362793
"asset":"CrescentMoon"
"selectable":true
"left":160
"fill":"#FFFFFF"}
{"opacity":1
"angle":301.5858305636558
"flipX":false
"flipY":false
"top":209.375
"height":100.40493434240952
"width":47.3543835542541
"asset":"CrescentMoon"
"selectable":true
"left":81.25
"fill":"#FFFFFF"}
{"opacity":1
"angle":226.0132876517399
"flipX":false
"flipY":false
"top":211.25
"height":99.04090743635727
"width":46.711062051077356
"asset":"CrescentMoon"
"selectable":true
"left":240.625
"fill":"#FFFFFF"}
{"opacity":1
"angle":318.7774762031558
"flipX":false
"flipY":false
"top":239.43236471058952
"height":45.19966452962677
"width":57.28321926022861
"asset":"Line"
"selectable":true
"left":230.6721258769403
"fill":"#1A7B30"}
{"opacity":1
"angle":219.97157100748305
"flipX":false
"flipY":false
"top":242.6728776094877
"height":45.19966452962677
"width":56.92359422289959
"asset":"Line"
"selectable":true
"left":98.93492758976208
"fill":"#1A7B30"}
{"opacity":1
"angle":113.7960811209679
"flipX":false
"flipY":false
"top":294.375
"height":37.165303709339774
"width":22.973119589805364
"asset":"Drop"
"selectable":true
"left":108.75
"fill":"#FFFFFF"}
{"opacity":1
"angle":65.95231612878071
"flipX":true
"flipY":true
"top":296.25
"height":37.165303709339774
"width":22.973119589805364
"asset":"Drop"
"selectable":true
"left":225
"fill":"#FFFFFF"}
{"opacity":1
"angle":234.46634968740508
"flipX":true
"flipY":false
"top":277.73746079347296
"height":12.393912318143872
"width":38.34231077366189
"asset":"Wingpart"
"selectable":true
"left":124.93668074603818
"fill":"#FFFFFF"}
{"opacity":1
"angle":234.94749696820202
"flipX":false
"flipY":true
"top":293.125
"height":12.393912318143872
"width":38.34231077366189
"asset":"Wingpart"
"selectable":true
"left":136.25
"fill":"#FFFFFF"}
{"opacity":1
"angle":303.6931430785234
"flipX":false
"flipY":false
"top":295
"height":12.393912318143872
"width":38.34231077366189
"asset":"Wingpart"
"selectable":true
"left":196.25
"fill":"#FFFFFF"}
{"opacity":1
"angle":127.16525332629286
"flipX":false
"flipY":false
"top":280
"height":12.393912318143872
"width":38.34231077366189
"asset":"Wingpart"
"selectable":true
"left":206.875
"fill":"#FFFFFF"}
{"opacity":1
"angle":0
"flipX":false
"flipY":false
"top":122.5
"height":159.50155763239874
"width":17.512655763239877
"asset":"Stroke"
"selectable":true
"left":159.69382788161994
"fill":"#FFFFFF"}]'}
id:"00000000-0000-0000-0000-000000000000"}
request.send(JSON.stringify(data));
广告