Skip to content

Instantly share code, notes, and snippets.

View saemisec's full-sized avatar
💭
I may be slow to respond.

saemisec

💭
I may be slow to respond.
View GitHub Profile
@saemisec
saemisec / snappfood.js
Created July 5, 2022 08:51 — forked from SamadiPour/console_easy_excute.js
Snappfood Spent money
cookies = Object.fromEntries(document.cookie.split('; ').map(c => c.split('=')));
let UDID = cookies.UDID;
let jwt = cookies[['jwt-access_token']];
// let jwt = JSON.parse(window.localStorage.JWT).access_token;
var myHeaders = new Headers();
myHeaders.append("authority", "snappfood.ir");
myHeaders.append("accept", "application/json, text/plain, */*");
myHeaders.append("accept-language", "en-US,en;q=0.9,fa;q=0.8");
myHeaders.append("authorization", "Bearer " + jwt);