I took this code from the site, the request is sent by pressing the offerButton button (it is in the div `confirmModal).
I can't figure out how to make it so that you can send the same request by typing js code into the browser console. Thanks in advance for your help.
function offer(){inlineAlert("","Processing trade offer - please wait...");$("#confirmModal").modal("hide");var csv="";var sum=0;$("#right .slot").each(function(i,e){csv+=$(this).data("id")+","; sum+=$(this).data("price");}); var turl=$("#tradeurl").val(); var remember=$("#remember").is(":checked")?"on":"off"; var url="scripts/_withdraw.php"; if(DEPOSIT){url="scripts/_deposit.php";} $.ajax( { "url":url,type:"GET", data:{"assetids":csv,"tradeurl":turl,"checksum":sum,"remember":remember}, success:function(data){ try{data=JSON.parse(data); if(data.success) {inlineAlert("success","New trade offer!"); showPending(data); }else{ inlineAlert("error",data.error);}}catch(err){inlineAlert("error","Javascript error: "+err);}},error:function(err){inlineAlert("error","AJAX error: "+err.statusText); }, } ); }