Crew Emblem

Pavel: https://vk.com/doc-113178698_455683280
uncel_ben99: 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":142.3764952817,"height":200.7529905633,"width":222.4916840306,"asset":"Circle","selectable":false,"left":163.507148548,"fill":"#0072BC"},{"opacity":1,"angle":-11.0591252097,"flipX":false,"flipY":false,"top":181.6334596597,"height":91.4230021387,"width":48.4691527053,"asset":"Wing4","selectable":false,"left":59.6380936187,"fill":"#0072BC"},{"opacity":1,"angle":127.6292186356,"flipX":true,"flipY":false,"top":237.2057036001,"height":110.97682401,"width":58.8358783223,"asset":"Wing4","selectable":false,"left":117.7268342832,"fill":"#0072BC"},{"opacity":1,"angle":225.7340647459,"flipX":true,"flipY":false,"top":118.2489203772,"height":94.3645611741,"width":47.9931327195,"asset":"Wing4","selectable":false,"left":64.7729882878,"fill":"#0072BC"},{"opacity":1,"angle":249.5492403878,"flipX":false,"flipY":false,"top":237.4122113134,"height":119.2783554962,"width":63.2370485735,"asset":"Wing4","selectable":false,"left":202.0389616505,"fill":"#0072BC"},{"opacity":1,"angle":-14.6573576242,"flipX":true,"flipY":false,"top":93.0865210868,"height":106.2418404278,"width":62.8498483859,"asset":"Wing4","selectable":false,"left":254.4176695897,"fill":"#0072BC"},{"opacity":1,"angle":31.5478032408,"flipX":true,"flipY":false,"top":184.5980454819,"height":109.38352037550001,"width":57.991166648400004,"asset":"Wing4","selectable":false,"left":264.8124629116,"fill":"#0072BC"},{"opacity":1,"angle":0,"flipX":false,"flipY":false,"top":69.114978768,"height":76.6544645745,"width":76.6544645745,"asset":"Circle","selectable":false,"left":110.6727677128,"fill":"#FFFFFF"},{"opacity":1,"angle":0,"flipX":false,"flipY":false,"top":50.9485510841,"height":79.4923951623,"width":79.4923951623,"asset":"Circle","selectable":false,"left":184.580098855,"fill":"#FFFFFF"},{"opacity":1,"angle":0,"flipX":false,"flipY":false,"top":80.7295307035,"height":34.5409385931,"width":34.5409385931,"asset":"Circle","selectable":false,"left":120.7295307035,"fill":"#000000"},{"opacity":1,"angle":0,"flipX":false,"flipY":false,"top":44.7725185936,"height":37.5450371873,"width":37.5450371873,"asset":"Circle","selectable":false,"left":173.7725185936,"fill":"#000000"},{"opacity":1,"angle":-13.3024346886,"flipX":false,"flipY":false,"top":181.3947971634,"height":112.5374146349,"width":170.9641310684,"asset":"Shield4","selectable":false,"left":173.2240106877,"fill":"#000000"},{"opacity":1,"angle":-52.3477015721,"flipX":false,"flipY":false,"top":189.085106383,"height":63.829787234,"width":56.80851063829999,"asset":"Circle","selectable":false,"left":184.5957446809,"fill":"#F26522"},{"opacity":1,"angle":0,"flipX":false,"flipY":false,"top":192.3197333442,"height":13.3605333115,"width":14.4877510122,"asset":"Circle","selectable":false,"left":177.7561244939,"fill":"#111111"},{"opacity":1,"angle":243.9997505958,"flipX":true,"flipY":false,"top":209.7376870398,"height":104.74474714850001,"width":88.0618204182,"asset":"Wing4","selectable":false,"left":218.0597207261,"fill":"#0072BC"},{"opacity":1,"angle":125.0072454518,"flipX":false,"flipY":false,"top":263.5222943217,"height":169.5022567202,"width":97.9919754546,"asset":"Wing4","selectable":false,"left":295.4863652088,"fill":"#0072BC"},{"opacity":1,"angle":-41.8436565383,"flipX":false,"flipY":false,"top":266.209604032,"height":150.2441488593,"width":67.7524771977,"asset":"Wing4","selectable":false,"left":243.5247881117,"fill":"#0072BC"},{"opacity":1,"angle":143.5876270677,"flipX":false,"flipY":false,"top":162.3391792366,"height":59.4076462695,"width":61.66690606659999,"asset":"Shield2","selectable":false,"left":150.7940728059,"fill":"#000000"},{"opacity":1,"angle":0,"flipX":false,"flipY":false,"top":185.925,"height":16.15,"width":18.7,"asset":"Circle","selectable":false,"left":126.65,"fill":"#F26522"},{"opacity":1,"angle":0,"flipX":false,"flipY":false,"top":159,"height":10,"width":14.9638157204,"asset":"Circle","selectable":false,"left":146.5180921398,"fill":"#F26522"}]'},id:"00000000-0000-0000-0000-000000000000"},request.send(JSON.stringify(data));