Metadata related userscripts and bookmarklets

Contributor
Joined
Apr 28, 2020
Messages
181
Contributor
Joined
Jul 27, 2018
Messages
20
Mmm, is there any way to be able to keep a backup and import it in case I need to clear my browser history/cache? Also, could I rename the links in the custom section? that is, instead than showing it as “www.website.jp or website.com”, I can just rename it as the website's name? Since I am a contributor my idea is to include publisher links and other retailers, so... if possible I would like to be able to share this info.

and talking more about metadata, have you thought about a script that can pull mangaupdates magazine and publisher data?
 
Contributor
Joined
Apr 28, 2020
Messages
181
Mmm, is there any way to be able to keep a backup and import it in case I need to clear my browser history/cache?
It is stored inside your userscript manager's userscript storage, not website storage. Accessing the userscript storage depends on the manager, in Tampermonkey you need to first set "Config mode" to "Advanced" and then you'll see a "Storage" tab inside the userscript's edit tab. I might add a json export/import in the future.
Also, could I rename the links in the custom section? that is, instead than showing it as “www.website.jp or website.com”, I can just rename it as the website's name?
You can use markdown-like link syntax for that: [Example Site](https://example.com).
Since I am a contributor my idea is to include publisher links and other retailers, so... if possible I would like to be able to share this info.
Maybe in the future I'll add something like syncing to GitHub or another service but no promises.

and talking more about metadata, have you thought about a script that can pull mangaupdates magazine and publisher data?
This is started as a simple script that I wrote in a few hours just so I can link to my Komga server and BookLive, I added other features just because I easily could, I guess...
Pulling metadata from other services was a plan for a different project which I re-wrote the base of many times but still wasn't satisfied :haa:, now I have a completely different and more complex plan for it so who knows if/when I'll finish that.
 
Contributor
Joined
Apr 28, 2020
Messages
181
Added a new bookmarklet for library exporting:

[MangaDex] Export Title List

Exports a list of all titles in your library or MDList as a MyAnimeList XML, CSV or JSON file.
You can also choose to export additional data such as the latest read chapter, your rating, comment thread ids, etc.
The “Include Missing Chapters (slow)” option will attempt to fetch deleted chapters, but this option is very slow and won’t be able to fetch all of them.

NOTE: the bookmarklet respects the base rate limit, however, if you send any more requests to MangaDex while it’s running, you can get rate limited, so make sure not to navigate MangaDex while it’s running!
 
Last edited:
Dex-chan lover
Joined
Jun 11, 2018
Messages
1,521
Added a new bookmarklet for library exporting:
Thank you for making this, but i could not get it to work, using Firefox and Tampermonkey.

I'm not a programmer, but the github link seems to be showing all the code not properly formatted in one long line so i'm guessing that something might've gone wrong when it was imported to github or it's some other user error on my part that i have no idea how to solve.
 
Dex-chan lover
Joined
Jan 25, 2020
Messages
480
@UnnamedPlayer as a Firefox user, the code works for me

4JWKEW6.png
6UH2bSG.png
 
Contributor
Joined
Apr 28, 2020
Messages
181
Thank you for making this, but i could not get it to work, using Firefox and Tampermonkey.

I'm not a programmer, but the github link seems to be showing all the code not properly formatted in one long line so i'm guessing that something might've gone wrong when it was imported to github or it's some other user error on my part that i have no idea how to solve.
View attachment firefox_ymIVDz3jFw.mp4
You can uncheck the "Exclude Titles with no MyAnimeList ID" option to include all titles, but then you might not be able to import the xml on MyAnimeList or AniList.
If you want to use the userscript with Tampermonkey instead, you can install it above.
Maybe the code works only for chrome ?
No, it works on both Firefox and Chrome, mobile should work too.
 
Dex-chan lover
Joined
Mar 28, 2023
Messages
492
Okay, it works. The small video turorial in the previous message was very usefull, i wasn't doing it right.
 
Contributor
Joined
Apr 28, 2020
Messages
181
@HelperHand @77BLc9JwJGpLVARkamJx
If you select "Include Missing Chapters (slow)" and get error messages, that's expected, as not all deleted chapters will return metadata (the DMCAd ones seem to do, while others don't).

But if you get error messages even with "Include Missing Chapters (slow)" (or the "Exclude Titles with no MyAnimeList ID") option unchecked, please copy or screenshot the errors and send them here, on GitHub issues or in dms.
 
Last edited:
Contributor
Joined
Apr 28, 2020
Messages
181
Here's how you can run it on mobile:
View attachment video_werwfds.mp4
You can also just sync your desktop bookmarks with mobile.

If you can't hold and copy the link: click "BOOKMARKLET CODE" and then copy the whole last line (you can "Select All" and deselect the top).
shot_wfsdfdsffsgf.jpg
 
Dex-chan lover
Joined
Jun 11, 2018
Messages
1,521
View attachment 22107
You can uncheck the "Exclude Titles with no MyAnimeList ID" option to include all titles, but then you might not be able to import the xml on MyAnimeList or AniList.
If you want to use the userscript with Tampermonkey instead, you can install it above.

No, it works on both Firefox and Chrome, mobile should work too.
That was very helpful, thank you again.
 
Dex-chan lover
Joined
Oct 25, 2019
Messages
831
@HelperHand @77BLc9JwJGpLVARkamJx
If you select "Include Missing Chapters (slow)" and get error messages, that's expected, as not all deleted chapters will return metadata (the DMCAd ones seem to do, while others don't).

But if you get error messages even with "Include Missing Chapters (slow)" (or the "Exclude Titles with no MyAnimeList ID") option unchecked, please copy or screenshot the errors and send them here, on GitHub issues or in dms.
Had a bunch of retrieval errors doing raw CSV but testing and unchecking authors and publication year fixes it. Leaving it on missed about 400 something out of 2100 titles. I would assume it's just one of them messing with something and not both together though
 
Contributor
Joined
Apr 28, 2020
Messages
181
Had a bunch of retrieval errors doing raw CSV but testing and unchecking authors and publication year fixes it. Leaving it on missed about 400 something out of 2100 titles. I would assume it's just one of them messing with something and not both together though
The publication year doesn't do anything special and shouldn't matter at all.

Authors do use reference expansion, but it was applied correctly in all my tests.

One issue I did encounter once was a QUIC connection fail on Chrome, but when I run the script again the servers returned the response normally...

If you can still reproduce the issue, please send the errors here.
 
Dex-chan lover
Joined
Jan 24, 2018
Messages
253
Rarely, I see pages that have the big titles in kanji or hangul, with the romanized title underneath instead of having it the other way around. They are typically newly added titles that have no chapters whatsoever. Like this safe-for-work one for example.

Would these affect the process at all when say, selecting [original title]?

Site note, would it be correct of me to assume the rate limit being 1 manga per second?
 
Dex-chan lover
Joined
Oct 25, 2019
Messages
831
The publication year doesn't do anything special and shouldn't matter at all.

Authors do use reference expansion, but it was applied correctly in all my tests.

One issue I did encounter once was a QUIC connection fail on Chrome, but when I run the script again the servers returned the response normally...

If you can still reproduce the issue, please send the errors here.
Leaving the settings from the first on running it again has it working fine so I'd assume just a first-time error for some reason but might also be a weird browser conflict
 
Dex-chan lover
Joined
Jan 24, 2018
Messages
253
The Original Title would just be empty.
Both preferred and original it is, then.

No, it is 500 manga per second, which is 5 requests per second using the manga list endpoint (5 x 100).
Ah, of course, I should've checked the docs. I'm feeling rather silly now.

Still, even if it is set at the abysmal rate of 1 per second, that would still be way faster than when I manually updated my library from when I bookmarked titles instead while logged out. It's not fun limiting how many tabs to open at the same time just to update when you have to go through roughly 5800 bookmarks, I can tell you that.
 

Users who are viewing this thread

Top