登入
登入
CHN
CHN
ENG
DEU
FRA
RUS
BRA
專用徽章
Battlefield
加入自己的徽章
热门
8
複製總數
150
圖層數
35
Alice
作者:
飯尾昇平
»
代碼 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":"Shield4","left":104.375,"top":301.875,"angle":273.83912689104295,"width":132.49993769470402,"height":159.50155763239874,"opacity":1,"fill":"#42495B","flipX":false,"flipY":false,"selectable":true},{"asset":"ArrowBent","left":99.50727430854513,"top":219.62655827448123,"angle":139.60603472085296,"width":213.92170954812832,"height":124.12908337837322,"opacity":1,"fill":"#42495B","flipX":false,"flipY":true,"selectable":true},{"asset":"Circle","left":131.5625,"top":276.875,"angle":0,"width":191.875,"height":68.75,"opacity":1,"fill":"#FFF6ED","flipX":false,"flipY":false,"selectable":true},{"asset":"Circle","left":117.7808605919003,"top":240.3441394080997,"angle":0,"width":136.31327881619936,"height":136.31327881619936,"opacity":1,"fill":"#FFF6ED","flipX":false,"flipY":false,"selectable":true},{"asset":"Shield5","left":129.54842751907915,"top":296.1971113197022,"angle":348.82908916216405,"width":38.69003260825178,"height":44.60733499299433,"opacity":1,"fill":"#F26D7D","flipX":false,"flipY":false,"selectable":true},{"asset":"holiday_Tophat_detail","left":129.78668839463282,"top":299.80554148148457,"angle":343.5582409692003,"width":35.10950841193143,"height":29.877377771264964,"opacity":1,"fill":"#F6989D","flipX":true,"flipY":false,"selectable":true},{"asset":"Eye2","left":165.83677774817636,"top":241.89903957320965,"angle":69.79422000612584,"width":222.43975476233027,"height":97.36327090793922,"opacity":1,"fill":"#42495B","flipX":false,"flipY":false,"selectable":true},{"asset":"Eye2","left":203.83737819348787,"top":264.3796696185016,"angle":58.27548286195959,"width":232.0612134328148,"height":101.574643502127,"opacity":1,"fill":"#FFF6ED","flipX":false,"flipY":false,"selectable":false},{"asset":"Shield8","left":183.6749477674673,"top":424.3920038422337,"angle":351.2328129172323,"width":240.71656220160116,"height":263.2175499479314,"opacity":1,"fill":"#42495B","flipX":false,"flipY":false,"selectable":true},{"asset":"holiday_scarf_fill","left":152.84473117424474,"top":353.4145865702198,"angle":352.98520252113707,"width":87.25371688223763,"height":83.11197346898449,"opacity":1,"fill":"#6ECFF6","flipX":false,"flipY":false,"selectable":true},{"asset":"Eye2","left":203.75,"top":200,"angle":34.59576543224027,"width":159.50155763239874,"height":69.81482866043613,"opacity":1,"fill":"#42495B","flipX":false,"flipY":false,"selectable":true},{"asset":"holiday_Tophat_detail","left":250.5742525972805,"top":342.01257726323604,"angle":81.8107078120311,"width":257.2619033994337,"height":96.43238557079907,"opacity":1,"fill":"#42495B","flipX":false,"flipY":false,"selectable":true},{"asset":"HalfCircle","left":219.5868351493799,"top":274.88089463112243,"angle":271.9984140522689,"width":29.711489068065518,"height":15.204832769238008,"opacity":1,"fill":"#FFF6ED","flipX":false,"flipY":false,"selectable":true},{"asset":"holiday_Tophat_detail","left":268.2721458370008,"top":252.8775762885322,"angle":256.426759559008,"width":194.319853245442,"height":66.638307449984,"opacity":1,"fill":"#42495B","flipX":false,"flipY":true,"selectable":true},{"asset":"Emblem71","left":163.9069768191787,"top":251.99535940820158,"angle":274.16484827075504,"width":55.34437652499095,"height":12.626268969980075,"opacity":1,"fill":"#0054A6","flipX":false,"flipY":false,"selectable":true},{"asset":"Emblem71","left":84.06969387113413,"top":247.77196769372785,"angle":274.6209436190695,"width":56.16133149888595,"height":12.124170646277861,"opacity":1,"fill":"#0054A6","flipX":false,"flipY":false,"selectable":true},{"asset":"Emblem79","left":169.293519800613,"top":202.96394573379715,"angle":31.370562114479057,"width":23.10188238674666,"height":38.65661771692874,"opacity":1,"fill":"#262626","flipX":false,"flipY":false,"selectable":true},{"asset":"Emblem79","left":83.22543416476694,"top":201.47115728756276,"angle":336.0831881948108,"width":25.528469180808386,"height":35.38134176308509,"opacity":1,"fill":"#262626","flipX":true,"flipY":false,"selectable":true},{"asset":"Emblem80","left":261.90602892924056,"top":181.8311910989254,"angle":33.10252941418351,"width":84.74056270262103,"height":76.44261956585436,"opacity":1,"fill":"#42495B","flipX":false,"flipY":false,"selectable":true},{"asset":"CrescentMoon","left":160.08883375709587,"top":176.54090442346006,"angle":275.291775882264,"width":98.75261212887774,"height":246.878610007672,"opacity":1,"fill":"#42495B","flipX":false,"flipY":false,"selectable":true},{"asset":"Emblem80","left":265.8036611188129,"top":216.69268998035278,"angle":0.9182790413116777,"width":96.09159064959016,"height":86.68213513381865,"opacity":1,"fill":"#42495B","flipX":false,"flipY":false,"selectable":true},{"asset":"Circle","left":153.2496105919003,"top":36.875,"angle":0,"width":394.7507788161994,"height":159.50155763239874,"opacity":1,"fill":"#FFFFFF","flipX":false,"flipY":false,"selectable":true},{"asset":"CrescentMoon","left":42.5,"top":68.125,"angle":210.26667055975494,"width":79.79220779220778,"height":159.58441558441555,"opacity":1,"fill":"#FFFFFF","flipX":false,"flipY":false,"selectable":true},{"asset":"holiday_Tophat_detail","left":239.08431997683905,"top":185.72167189302306,"angle":273.5859960276919,"width":75.68074799965208,"height":25.558309501091117,"opacity":1,"fill":"#232637","flipX":false,"flipY":false,"selectable":true},{"asset":"holiday_snowman_arm","left":248.76636897771283,"top":281.3992967996705,"angle":65.12743897431696,"width":98.2608123506667,"height":46.816024857661986,"opacity":1,"fill":"#232637","flipX":false,"flipY":false,"selectable":true},{"asset":"HalfCircle","left":82.27486292836873,"top":265.08532094948094,"angle":5.123054906193897,"width":11.12191244446958,"height":20.395219607156072,"opacity":1,"fill":"#5B9DB5","flipX":false,"flipY":false,"selectable":true},{"asset":"HalfCircle","left":162.70275570942601,"top":268.7205022686636,"angle":2.3791120193891366,"width":11.783599034935897,"height":21.34786172246308,"opacity":1,"fill":"#5B9DB5","flipX":false,"flipY":false,"selectable":true},{"asset":"StrokeBent","left":132.42604895604796,"top":174.0518098337383,"angle":269.06683701912084,"width":33.29677268619803,"height":128.1606871855571,"opacity":0.16,"fill":"#FFFFFF","flipX":false,"flipY":false,"selectable":true},{"asset":"Eye2","left":169.35534059037892,"top":255.05679001075865,"angle":273.82894537490773,"width":68.14022555704541,"height":3.549310393566073,"opacity":1,"fill":"#FFF6ED","flipX":false,"flipY":false,"selectable":true},{"asset":"Eye2","left":89.9158901836557,"top":249.80176950716705,"angle":274.7481355874177,"width":69.43086095934343,"height":4.824435798007514,"opacity":1,"fill":"#FFF6ED","flipX":false,"flipY":false,"selectable":true},{"asset":"Star","left":32.52383897959718,"top":43.14629187264174,"angle":0,"width":58.29923559159317,"height":55.4456701944959,"opacity":1,"fill":"#B7B7B7","flipX":false,"flipY":false,"selectable":true},{"asset":"Star","left":96.58856655638743,"top":43.42493032834778,"angle":0,"width":58.928690745173625,"height":56.04431548535595,"opacity":1,"fill":"#B7B7B7","flipX":false,"flipY":false,"selectable":true},{"asset":"Star","left":160.03390637286478,"top":43.729590511870455,"angle":0,"width":59.56937037812825,"height":56.6536358524013,"opacity":1,"fill":"#B7B7B7","flipX":false,"flipY":false,"selectable":true},{"asset":"Star","left":286.2839063728647,"top":43.72959051187047,"angle":0,"width":59.56937037812825,"height":56.6536358524013,"opacity":1,"fill":"#B7B7B7","flipX":false,"flipY":false,"selectable":true},{"asset":"Star","left":224.39322673991015,"top":43.74527014482508,"angle":0,"width":58.288011112218975,"height":55.43499511831058,"opacity":1,"fill":"#B7B7B7","flipX":false,"flipY":false,"selectable":true}]'},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":"Shield4","left":104.375,"top":301.875,"angle":273.83912689104295,"width":132.49993769470402,"height":159.50155763239874,"opacity":1,"fill":"#42495B","flipX":false,"flipY":false,"selectable":true},{"asset":"ArrowBent","left":99.50727430854513,"top":219.62655827448123,"angle":139.60603472085296,"width":213.92170954812832,"height":124.12908337837322,"opacity":1,"fill":"#42495B","flipX":false,"flipY":true,"selectable":true},{"asset":"Circle","left":131.5625,"top":276.875,"angle":0,"width":191.875,"height":68.75,"opacity":1,"fill":"#FFF6ED","flipX":false,"flipY":false,"selectable":true},{"asset":"Circle","left":117.7808605919003,"top":240.3441394080997,"angle":0,"width":136.31327881619936,"height":136.31327881619936,"opacity":1,"fill":"#FFF6ED","flipX":false,"flipY":false,"selectable":true},{"asset":"Shield5","left":129.54842751907915,"top":296.1971113197022,"angle":348.82908916216405,"width":38.69003260825178,"height":44.60733499299433,"opacity":1,"fill":"#F26D7D","flipX":false,"flipY":false,"selectable":true},{"asset":"holiday_Tophat_detail","left":129.78668839463282,"top":299.80554148148457,"angle":343.5582409692003,"width":35.10950841193143,"height":29.877377771264964,"opacity":1,"fill":"#F6989D","flipX":true,"flipY":false,"selectable":true},{"asset":"Eye2","left":165.83677774817636,"top":241.89903957320965,"angle":69.79422000612584,"width":222.43975476233027,"height":97.36327090793922,"opacity":1,"fill":"#42495B","flipX":false,"flipY":false,"selectable":true},{"asset":"Eye2","left":203.83737819348787,"top":264.3796696185016,"angle":58.27548286195959,"width":232.0612134328148,"height":101.574643502127,"opacity":1,"fill":"#FFF6ED","flipX":false,"flipY":false,"selectable":false},{"asset":"Shield8","left":183.6749477674673,"top":424.3920038422337,"angle":351.2328129172323,"width":240.71656220160116,"height":263.2175499479314,"opacity":1,"fill":"#42495B","flipX":false,"flipY":false,"selectable":true},{"asset":"holiday_scarf_fill","left":152.84473117424474,"top":353.4145865702198,"angle":352.98520252113707,"width":87.25371688223763,"height":83.11197346898449,"opacity":1,"fill":"#6ECFF6","flipX":false,"flipY":false,"selectable":true},{"asset":"Eye2","left":203.75,"top":200,"angle":34.59576543224027,"width":159.50155763239874,"height":69.81482866043613,"opacity":1,"fill":"#42495B","flipX":false,"flipY":false,"selectable":true},{"asset":"holiday_Tophat_detail","left":250.5742525972805,"top":342.01257726323604,"angle":81.8107078120311,"width":257.2619033994337,"height":96.43238557079907,"opacity":1,"fill":"#42495B","flipX":false,"flipY":false,"selectable":true},{"asset":"HalfCircle","left":219.5868351493799,"top":274.88089463112243,"angle":271.9984140522689,"width":29.711489068065518,"height":15.204832769238008,"opacity":1,"fill":"#FFF6ED","flipX":false,"flipY":false,"selectable":true},{"asset":"holiday_Tophat_detail","left":268.2721458370008,"top":252.8775762885322,"angle":256.426759559008,"width":194.319853245442,"height":66.638307449984,"opacity":1,"fill":"#42495B","flipX":false,"flipY":true,"selectable":true},{"asset":"Emblem71","left":163.9069768191787,"top":251.99535940820158,"angle":274.16484827075504,"width":55.34437652499095,"height":12.626268969980075,"opacity":1,"fill":"#0054A6","flipX":false,"flipY":false,"selectable":true},{"asset":"Emblem71","left":84.06969387113413,"top":247.77196769372785,"angle":274.6209436190695,"width":56.16133149888595,"height":12.124170646277861,"opacity":1,"fill":"#0054A6","flipX":false,"flipY":false,"selectable":true},{"asset":"Emblem79","left":169.293519800613,"top":202.96394573379715,"angle":31.370562114479057,"width":23.10188238674666,"height":38.65661771692874,"opacity":1,"fill":"#262626","flipX":false,"flipY":false,"selectable":true},{"asset":"Emblem79","left":83.22543416476694,"top":201.47115728756276,"angle":336.0831881948108,"width":25.528469180808386,"height":35.38134176308509,"opacity":1,"fill":"#262626","flipX":true,"flipY":false,"selectable":true},{"asset":"Emblem80","left":261.90602892924056,"top":181.8311910989254,"angle":33.10252941418351,"width":84.74056270262103,"height":76.44261956585436,"opacity":1,"fill":"#42495B","flipX":false,"flipY":false,"selectable":true},{"asset":"CrescentMoon","left":160.08883375709587,"top":176.54090442346006,"angle":275.291775882264,"width":98.75261212887774,"height":246.878610007672,"opacity":1,"fill":"#42495B","flipX":false,"flipY":false,"selectable":true},{"asset":"Emblem80","left":265.8036611188129,"top":216.69268998035278,"angle":0.9182790413116777,"width":96.09159064959016,"height":86.68213513381865,"opacity":1,"fill":"#42495B","flipX":false,"flipY":false,"selectable":true},{"asset":"Circle","left":153.2496105919003,"top":36.875,"angle":0,"width":394.7507788161994,"height":159.50155763239874,"opacity":1,"fill":"#FFFFFF","flipX":false,"flipY":false,"selectable":true},{"asset":"CrescentMoon","left":42.5,"top":68.125,"angle":210.26667055975494,"width":79.79220779220778,"height":159.58441558441555,"opacity":1,"fill":"#FFFFFF","flipX":false,"flipY":false,"selectable":true},{"asset":"holiday_Tophat_detail","left":239.08431997683905,"top":185.72167189302306,"angle":273.5859960276919,"width":75.68074799965208,"height":25.558309501091117,"opacity":1,"fill":"#232637","flipX":false,"flipY":false,"selectable":true},{"asset":"holiday_snowman_arm","left":248.76636897771283,"top":281.3992967996705,"angle":65.12743897431696,"width":98.2608123506667,"height":46.816024857661986,"opacity":1,"fill":"#232637","flipX":false,"flipY":false,"selectable":true},{"asset":"HalfCircle","left":82.27486292836873,"top":265.08532094948094,"angle":5.123054906193897,"width":11.12191244446958,"height":20.395219607156072,"opacity":1,"fill":"#5B9DB5","flipX":false,"flipY":false,"selectable":true},{"asset":"HalfCircle","left":162.70275570942601,"top":268.7205022686636,"angle":2.3791120193891366,"width":11.783599034935897,"height":21.34786172246308,"opacity":1,"fill":"#5B9DB5","flipX":false,"flipY":false,"selectable":true},{"asset":"StrokeBent","left":132.42604895604796,"top":174.0518098337383,"angle":269.06683701912084,"width":33.29677268619803,"height":128.1606871855571,"opacity":0.16,"fill":"#FFFFFF","flipX":false,"flipY":false,"selectable":true},{"asset":"Eye2","left":169.35534059037892,"top":255.05679001075865,"angle":273.82894537490773,"width":68.14022555704541,"height":3.549310393566073,"opacity":1,"fill":"#FFF6ED","flipX":false,"flipY":false,"selectable":true},{"asset":"Eye2","left":89.9158901836557,"top":249.80176950716705,"angle":274.7481355874177,"width":69.43086095934343,"height":4.824435798007514,"opacity":1,"fill":"#FFF6ED","flipX":false,"flipY":false,"selectable":true},{"asset":"Star","left":32.52383897959718,"top":43.14629187264174,"angle":0,"width":58.29923559159317,"height":55.4456701944959,"opacity":1,"fill":"#B7B7B7","flipX":false,"flipY":false,"selectable":true},{"asset":"Star","left":96.58856655638743,"top":43.42493032834778,"angle":0,"width":58.928690745173625,"height":56.04431548535595,"opacity":1,"fill":"#B7B7B7","flipX":false,"flipY":false,"selectable":true},{"asset":"Star","left":160.03390637286478,"top":43.729590511870455,"angle":0,"width":59.56937037812825,"height":56.6536358524013,"opacity":1,"fill":"#B7B7B7","flipX":false,"flipY":false,"selectable":true},{"asset":"Star","left":286.2839063728647,"top":43.72959051187047,"angle":0,"width":59.56937037812825,"height":56.6536358524013,"opacity":1,"fill":"#B7B7B7","flipX":false,"flipY":false,"selectable":true},{"asset":"Star","left":224.39322673991015,"top":43.74527014482508,"angle":0,"width":58.288011112218975,"height":55.43499511831058,"opacity":1,"fill":"#B7B7B7","flipX":false,"flipY":false,"selectable":true}]'},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
到最後的分號之間的內容都有貼上。 (徽章的所有圖層會被載入)
關閉控制台。
按一下右上方的「儲存並使用」按鈕。
广告