Skip to content

Instantly share code, notes, and snippets.

@sfc9982
Created January 31, 2024 07:52
Show Gist options
  • Save sfc9982/e5f5ded88ede7395157e42eebdbab267 to your computer and use it in GitHub Desktop.
Save sfc9982/e5f5ded88ede7395157e42eebdbab267 to your computer and use it in GitHub Desktop.
bf1 emblem
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":193.024727256,"height":283.610264383,"width":341.4101049164,"asset":"Square","selectable":false,"left":163.7280409639,"fill":"#764B3B"},{"opacity":1,"angle":139.0486771053,"flipX":false,"flipY":false,"top":726.450461304,"height":1259.2651522749,"width":820.7547591974,"asset":"Wing1","selectable":false,"left":501.0211582229,"fill":"#000000"},{"opacity":0.85,"angle":179.331273152,"flipX":false,"flipY":false,"top":-352.9262520948,"height":1242.1219587718,"width":587.7277898499,"asset":"Flag","selectable":false,"left":107.0976689736,"fill":"#FADBBF"},{"opacity":1,"angle":359.1781656706,"flipX":false,"flipY":true,"top":284,"height":217.2931664184,"width":146.8592979549,"asset":"Shield4","selectable":false,"left":182,"fill":"#C8916A"},{"opacity":1,"angle":349.2850427321,"flipX":false,"flipY":false,"top":142.4804863613,"height":361.76379507649995,"width":290.6997454453,"asset":"Shield4","selectable":false,"left":162.545033279,"fill":"#FADBBF"},{"opacity":1,"angle":0,"flipX":false,"flipY":false,"top":91.1612082528,"height":441.1003547872,"width":332.3811430218,"asset":"Circle","selectable":false,"left":162.7809192656,"fill":"#FADBBF"},{"opacity":1,"angle":105.3963560017,"flipX":false,"flipY":false,"top":-154.6512216263,"height":110.3710710927,"width":488.1555122575,"asset":"Banner","selectable":false,"left":221.4191706195,"fill":"#B37C5D"},{"opacity":1,"angle":253.4897652203,"flipX":false,"flipY":false,"top":79.4245236236,"height":78.7005136472,"width":70.2606521228,"asset":"Shield6","selectable":false,"left":261.4715156504,"fill":"#000000"},{"opacity":1,"angle":333.8870827867,"flipX":false,"flipY":false,"top":114,"height":36.3974815864,"width":36.3974815864,"asset":"Shield2","selectable":false,"left":255.5071060554,"fill":"#000000"},{"opacity":1,"angle":353.8296358565,"flipX":false,"flipY":false,"top":54,"height":15.062477336399999,"width":71.1240312134,"asset":"Wingpart","selectable":true,"left":273,"fill":"#000000"},{"opacity":1,"angle":4.3002281945,"flipX":false,"flipY":false,"top":71,"height":70.9834473347,"width":232.2079731745,"asset":"Banner","selectable":false,"left":376,"fill":"#FADBBF"},{"opacity":1,"angle":339.0864606139,"flipX":false,"flipY":false,"top":93.2256959599,"height":72.4924602639,"width":77.8226544202,"asset":"Circle","selectable":false,"left":246.1001147268,"fill":"#AFC2C9"},{"opacity":1,"angle":358.1514046247,"flipX":false,"flipY":false,"top":98.2410427513,"height":65.0057268145,"width":76.8545505804,"asset":"Eye2","selectable":false,"left":245.8146008293,"fill":"#F8FEFA"},{"opacity":1,"angle":170.1430411577,"flipX":false,"flipY":false,"top":88.4299059042,"height":71.9825848089,"width":52.54368217,"asset":"Circle","selectable":false,"left":240.6947437083,"fill":"#000000"},{"opacity":0.8,"angle":346.0118355066,"flipX":false,"flipY":false,"top":90.0207899714,"height":61.914515518,"width":44.2307612883,"asset":"Circle","selectable":false,"left":240.7588443643,"fill":"#502417"},{"opacity":0.8,"angle":257.8033167553,"flipX":false,"flipY":false,"top":104.199029007,"height":30.149040334,"width":30.6378812038,"asset":"StrokeBent","selectable":false,"left":243.4338702541,"fill":"#92776E"},{"opacity":1,"angle":350.8531408039,"flipX":false,"flipY":false,"top":91.3169262786,"height":27.1496806915,"width":16.0783979212,"asset":"Circle","selectable":false,"left":241.3984579584,"fill":"#280904"},{"opacity":1,"angle":0,"flipX":false,"flipY":false,"top":79,"height":10.2533390626,"width":10.2533390626,"asset":"Circle","selectable":false,"left":247,"fill":"#F8FEFA"},{"opacity":1,"angle":344.2849258659,"flipX":false,"flipY":false,"top":110.8568804129,"height":11.8079559144,"width":23.1957709677,"asset":"Circle","selectable":false,"left":231.0112479273,"fill":"#F8FEFA"},{"opacity":1,"angle":85.9993329015,"flipX":false,"flipY":true,"top":18.5529015291,"height":78.7552503432,"width":262.149774912,"asset":"Wingpart","selectable":false,"left":49.4539255633,"fill":"#B37C5D"},{"opacity":1,"angle":163.0633208686,"flipX":false,"flipY":false,"top":235,"height":10.623840008,"width":40.613289269,"asset":"Dogtag","selectable":false,"left":161,"fill":"#000000"},{"opacity":1,"angle":163.0633208686,"flipX":false,"flipY":false,"top":234,"height":10.623840008,"width":40.613289269,"asset":"Dogtag","selectable":false,"left":161,"fill":"#FADBBF"},{"opacity":1,"angle":623.0780420014,"flipX":false,"flipY":false,"top":213.9675116822,"height":74.7761241981,"width":40.32323083450001,"asset":"Shield2","selectable":false,"left":194.5438568015,"fill":"#000000"},{"opacity":1,"angle":259.1387743182,"flipX":false,"flipY":false,"top":208,"height":97.8886355195,"width":51.11532182639999,"asset":"Shield2","selectable":false,"left":192.5459217376,"fill":"#FADBBF"},{"opacity":1,"angle":258.3671670208,"flipX":false,"flipY":false,"top":166,"height":4.1258148056,"width":20.1133159783,"asset":"PlayerMarker","selectable":false,"left":157,"fill":"#C8916A"},{"opacity":1,"angle":234.4320433873,"flipX":false,"flipY":false,"top":-160.9217272933,"height":177.8362736844,"width":807.2451849992,"asset":"Banner","selectable":false,"left":-130.0529529565,"fill":"#B37C5D"},{"opacity":1,"angle":384.9997277654,"flipX":false,"flipY":false,"top":64,"height":7.7844008394,"width":60.2608366944,"asset":"Wingpart","selectable":false,"left":287.8026462781,"fill":"#000000"},{"opacity":1,"angle":243.453183256,"flipX":false,"flipY":false,"top":137.8897385342,"height":22.5197425573,"width":170.4412894902,"asset":"Wingpart","selectable":false,"left":91.7941376123,"fill":"#FADBBF"},{"opacity":1,"angle":93.2118570939,"flipX":false,"flipY":false,"top":151,"height":79.6777485834,"width":50.9545775703,"asset":"Shield4","selectable":false,"left":65.5511576757,"fill":"#000000"},{"opacity":1,"angle":80.9526948547,"flipX":false,"flipY":false,"top":162.9806837222,"height":128.4096734675,"width":59.277458845,"asset":"Shield2","selectable":false,"left":79.1213098625,"fill":"#FADBBF"},{"opacity":1,"angle":288.512401091,"flipX":false,"flipY":false,"top":151.0858755282,"height":14.8926047525,"width":26.1902744145,"asset":"RightTriangle","selectable":false,"left":22,"fill":"#FADBBF"},{"opacity":1,"angle":245.8121201873,"flipX":false,"flipY":false,"top":-102.1192468616,"height":91.7068919233,"width":547.8964076146,"asset":"Banner","selectable":false,"left":-50.4755052828,"fill":"#B37C5D"},{"opacity":1,"angle":327.4125317669,"flipX":false,"flipY":false,"top":137.9795844338,"height":14.554929236,"width":29.965681513900005,"asset":"Lightning","selectable":false,"left":48.5961258419,"fill":"#000000"},{"opacity":1,"angle":92.6508411632,"flipX":false,"flipY":false,"top":5.6191354773,"height":85.8082889858,"width":259.3581297205,"asset":"Eye2","selectable":false,"left":129.0935772142,"fill":"#B37C5D"},{"opacity":1,"angle":272.247657534,"flipX":false,"flipY":false,"top":75.08415285,"height":26.8477718949,"width":148.1637766434,"asset":"Eye2","selectable":false,"left":132.1440675322,"fill":"#FADBBF"},{"opacity":1,"angle":227.726062947,"flipX":false,"flipY":false,"top":-82.3918336872,"height":150.1175381641,"width":350.0127501104,"asset":"Radiotower","selectable":false,"left":303.1689155176,"fill":"#B37C5D"},{"opacity":0.8,"angle":366.4038954633,"flipX":false,"flipY":true,"top":52.6406932839,"height":5.0496994211,"width":74.4527047062,"asset":"Wingpart","selectable":false,"left":57.7986733166,"fill":"#713C2A"},{"opacity":0.8,"angle":333.4916527828,"flipX":false,"flipY":true,"top":14.9095544649,"height":5.0496994211,"width":68.0098501059,"asset":"Wingpart","selectable":false,"left":205.071916896,"fill":"#713C2A"}]'},id:"00000000-0000-0000-0000-000000000000"},request.send(JSON.stringify(data));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment