Skip to content

Instantly share code, notes, and snippets.

View Pourghannad's full-sized avatar

MohammadHasan Pourghannad Pourghannad

View GitHub Profile
@Pourghannad
Pourghannad / sort.js
Last active November 11, 2023 09:24
snapp-food sort resturant menu by price
let allRestaurantProduct = [];
const UUID = document.cookie.split("UUID=")[1].split(";")[0];
const vendorID =
window.location.pathname.split("/")[3].split("-").length === 1
? window.location.pathname.split("/")[3]
: window.location.pathname.split("/")[3].split("-")[2];
fetch(
`https://snappfood.ir/mobile/v2/restaurant/details/dynamic?optionalClient=WEBSITE&client=WEBSITE&deviceType=WEBSITE&appVersion=8.1.1&UDID=${UUID}&vendorCode=${vendorID}&show_party=1&fetch-static-data=1&locale=fa`,
{