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
/* | |
* Run on https://www.humblebundle.com/home/library | |
* Global variable `gamekeys` is available on the Library page | |
* | |
*/ | |
Promise.all(gamekeys.map(key => { | |
return new Promise((resolve, reject) => { | |
$.ajax({ | |
url: `https://www.humblebundle.com/api/v1/order/${key}?all_tpkds=true` | |
}).done(data => resolve(data)) |