Nhentai Favorites Scraper

Scrapes the magic numbers out of your Nhentai favorites list, returning the list as a text file. My first introduction to JavaScript, so don't expect perfection.

Aŭtoro
zzzb123
Ĉiutagaj instaloj
0
Tutaj instaloj
316
Ratings
1 0 1
Versio
1.5
Kreita
2020/09/26
Ĝisdatigita
2020/10/01
Licenco
N/A
Aplikiĝas al

My first attempt at writing anything in JavaScript. When triggered, it nexts through your favorites, copying all the magic numbers it comes across into the localStorage. When it reaches the end and the next button disappears, it prompts the user to save the completed file.

Tested working on Firefox, but likely works in other browsers as well. There is no 'good way' I could find to do this that didn't require special browser-specific permissions, so your list will be cut off after 5-10 MB. Considering a list of >1000 numbers is only about 1/100 of a MB, this is unlikely to be much of a problem, but do be aware it does have a cap.