This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Make sure to alow popups so that the invoices can be downloaded. | |
* Run this in the browser console. | |
* In case the class name for the div changes, inspect and update. | |
*/ | |
Array | |
.from(document.getElementsByClassName('_2uT6l')) | |
.map((el)=>el.innerText.match(/#([0-9]+)/)[1]) | |
.map((num)=>"https://www.swiggy.com/invoice/download/"+num) |