Skip to content

Instantly share code, notes, and snippets.

@neopheus
neopheus / uber-eats-invoice.js
Created December 8, 2023 16:03
Uber Eats Download Invoice
const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
const downloadInvoice = async (orderUUID) => {
try {
console.log(`Downloading invoice for order UUID: ${orderUUID}`);
const invoiceResponse = await fetch('https://www.ubereats.com/_p/api/getInvoiceFilesV1?localeCode=fr', {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'x-csrf-token': 'x' }, // Remplacez 'x' par votre token CSRF réel
body: JSON.stringify({ orderUUID }),
});
@neopheus
neopheus / uber-eats.js
Created December 8, 2023 09:11 — forked from simon-hv/uber-eats.js
Uber Eats Stats and Analytics - See your total spend, the restaurant you've ordered from the most, and your total spend by year
/**
* This script will fetch all your orders from UberEats and display some stats
*
* How to use:
* Go to https://www.ubereats.com/ and sign in
* Open the console of your browser: F12 key or right click anywhere on the page and click "Inspect"
* Go to the "Console" tab
* Copy/paste the code below
* Press enter
*/
@neopheus
neopheus / imageTraceToSVG.jsx
Created April 21, 2019 17:38 — forked from Ashraf-Ali-aa/imageTraceToSVG.jsx
trace image to SVG in Illustrator
/**********************************************************
ADOBE SYSTEMS INCORPORATED
Copyright 2005-2012 Adobe Systems Incorporated
All Rights Reserved
NOTICE: Adobe permits you to use, modify, and
distribute this file in accordance with the terms
of the Adobe license agreement accompanying it.