MangaUpdates chapter links

Allows to add direct links to chapters in MangaUpdates release lists

Author
agreg
Daily installs
0
Total installs
73
Ratings
0 0 0
Version
0.2
Created
2019-09-30
Updated
2019-11-24
License
N/A
Applies to

MangaUpdates direct chapter links

Allows opening chapters hosted by scanlator/translator groups directly from the MangaUpdates website (from Releases page and from the group page), provided that the group hosts such a website.

To allow link generation, you have to set up the group URL template (see example) and the title ID (the #{title} part of the URL). Chapter number has the same limitation as in reader, that is, no "subchapters" (1.3, 12.5, 243b) are allowed – they're treated as the base chapter number. (Additionally, if a release includes a range of chapters, the URL will point to the first one.)

If the chapter URLs in the group website are arbitrary (random) you can still link to the main page of the title (setting up template URL without the #{chapter} part). In cases of unstable URL scheme you can force the browser to ignore chapter number for a specific title by entering whole URL suffix as its ID and ending it with # (which makes browser treat everything after as an in-page reference)

Export/import

To make this userscript more useful, I implemented export/import logic in it. More specifically, an user can export the following parts of his data:

  • All of it (‘↓’ button in top-right corner of any links table);
  • Specific group data (‘Export’ button in group URL template dialog);
  • Specific title for a specific group + URL template of that group (‘Export’ button in title ID dialog).

All of these exports have the same format but different amount of contents. Thus, there's only one import button (‘↑’ button in top-right corner of any links table). On import, every group present in provided file will be imported, with the title IDs adding to the ones present (if such a group is already registered). Take note that a title ID is only valid for the URL template it was made for, usually, so if the file contains conflicting URL templates, such groups will be replaced instead of being merged with new data (you'll be asked to confirm it, so if you don't to lose your data or want to check it first you can simply cancel; the ID of the first group with non-matching URL template is provided in the confirmation message).

Further information on the feature usage can be found here.