MangaDex Limit-Width Dual Spread Fix

Improve Mangadex's fit-width logic to account for large images that are intended to be "dual-spread", ignoring the width limit on relevant pages.

Autor
Delfofthebla
Dnevne instalacije
0
Ukupno instalacija
3
Ocene
0 0 0
Verzija
1.0
Napravljeno
03/01/2025
Ažurirano
03/01/2025
Size
8,22 КБ
Licenca
MIT
Važi za

This is for people who use Mangadex in Long Strip mode and are dissatisfied with how the website handles "dual-spread" pages.

Regardless of whether or not you are in fit-width, fit-height, or fit-both mode, the website does not appear to treat smaller or larger images as anything special. This results in you having to lean in and squint, or change your reader settings, just so that you can properly view specific pages.

Features:
* When viewing a chapter of a manga in long-strip mode, the script will automatically scan all images on the page, look for differences in sizes between each page, and then do some calculations to decide which pages get special treatment. If it detects something that it sees as a "dual-spread" page, the limit-width setting will be removed for only that page.
* You can now middle-click on a page to toggle the limit-width functionality for that page.

Notes:
* This ONLY works on "Long-Strip" mode. It will likely just loop endlessly and do nothing for other modes. Do not enable this script unless you are using the website in long strip mode.
* Limit-Width and Limit-Both should be fully supported and behave properly, but I have not done anything with Limit-Height as I don't really care about that style. No-Limit obviously is ignored as well.

Known Issues:
* Sometimes scanlators will upload a chapter that is what I'd refer to as a "hot mess", where every single image is of a different size. The way that the script works is by calculating averages based on the width of each page. For chapters that don't have any consistency, this script will likely appear to be broken or sporadic--applying dual-spread behavior to a large number of "normal" pages. For these chapters, use middle-mouse to fix pages as you scroll.