Usability Tweaks for Manga sites.

Keyboard navigation, inertial drag scrolling, page rotation, chapter preloading and chapter tracking for MangaStream sites, like Asura Scans, Flame Scans, Void Scans, Luminous Scans, Shima Scans, Night Scans, Freak Scans.

Има други версии на този скрипт, където кодът е обновен. Покажи всички версии.

  • v2.8 24.08.2023

    - Yet another refactor of mobile swiping to navigate between chapters. This one might actually be okay.
    - Added support for a bunch of sites, both mangastream-based and otherwise. The bookmark tracking bits of this script will generally not be enabled on those sites, but the interaction tweaks (full screen support, rotation, swiping, key shortcuts, etc) will work and are worth having by themselves.

  • v2.7 17.08.2023

    - full screen mode (press F to pay respect)
    - tweaked swiping. it might actually feel like a swipe on mobile now.
    - track scroll position: going back to chapter you previously visited restore your position to where you left it.

  • v2.6 14.08.2023

    - partial support for manga-scans.com (junk removal and UX interactions like swipe/rotate/etc only, no enhanced bookmark support.)
    - unbreak asura's search bar
    - make asura's prev/next buttons work much sooner on page load.
    - mobile swiping is a thing now
    - added an animation to navigate between chapters (I wanted to use the new View Transition API, but it's not practical at this point.)

  • v2.5 12.08.2023

    - asura scans changed domain name yet again. cool.
    - added logic to automatically carry bookmarks and stuff from old domains to new domains
    (new domains will still have to be added manually in updates to this userscript.)

  • v2.4 10.08.2023

    dragging fix for firefox

  • v2.3 09.08.2023

    - fixed the rotation fix for firefox. gotta stop testing in square windows.
    - unbreak bottom chapter selection dropdown on asura.gg (by disabling discord links.)

  • v2.2 09.08.2023

    fixed page rotation on Firefox. a small shiver remains after some rotations. might be good enough tbh.

  • v2.1 09.08.2023

    KeyboardEvent.code tends to be an empty string on android Firefox. Switching to KeyboardEvent.key.
    (Also my rotation code, beautiful on Chromium, looks like poop on Firefox. Guess I gotta dig into that too.)

  • v2.0 08.08.2023

    shuffled things around to group them by concern and scope. no functionality change.

  • v1.15.1 08.08.2023

    Did I mention we rotate things now?

  • v1.15 08.08.2023

    A meager offering to the Gods of Code Golf. No functionality change.

  • v1.14 07.08.2023

    refactored page rotation.
    the code almost makes sense now, and the rotations feel smooth all around.

  • v1.13 07.08.2023

    Fix timing issue causing last read chapter to not always be tracked correctly.

  • v1.12 06.08.2023

    fixed rotation animation a bit so they land consistently in the same spot, and look plausible.

  • v1.11.1 05.08.2023

    Dang it, I added a last minute comment in the CSS and it wasn't a valid comment, so the landscape rotation thingy broke. My bad.
    It should be working now. It's beautiful. Try it.

  • v1.11 04.08.2023

    - disable horizontal swiping on mobile, it's too janky. works fine on desktop tho.
    - animate transitions between landscape and portrait modes. pretty. math is only slightly wrong.

  • v1.10 03.08.2023

    Right right. The last changelog message (which is probably hidden by default actually applies to this change.
    So, like, simpler navigation swiping, and stuff.

  • v1.9 03.08.2023

    Added landscape in the other direction too, so now `L` goes through each landscape direction and then back to portrait.
    And then I added support for `K` to do the same thing, but in reverse order. I don't know.

  • v1.8 03.08.2023

    - start userscript earlier, avoid flash of unprocessed content
    - remove a rogue darkmode widget on asura.gg
    - enable horizontal swiping to navigate between chapters
    - the  L  key now toggles between portrait and landscape mode.
    (yes, it's weird, but it's easier than flipping your entire monitor sideways.)

  • v1.7 18.07.2023

    Added support for a bunch of other MangaStream sites: Flame Scans, Void Scans, Luminous Scans, Shima Scans, Night Scans, Freak Scans.

  • v1.6 18.07.2023

    Groundwork for multi-site support.

  • v1.5 18.07.2023

    - Tweaked to work with TamperMonkey
    - all state, including bookmarks, are now saved in userscript data storage (which TamperMonkey can export/import with across devices & browsers, albeit not automatically.)

  • v1.4 16.07.2023

    - added support for asura.gg. will add support for other similar sites later (flamescans, etc. )

  • v1.3 16.07.2023

    Added tweaks for several more pages. New unread chapter badges. Removed loading animation.

  • v1.2 14.07.2023

    - collapse related series and comments (can be shown with a button)
    - add a loading state in the bookmarks page for clarity (and a fallback because that pages fails to load quite a bit.)
    - remove a few useless items in chapter pages (SEO nonsense and social media links.)

  • v1.1 11.07.2023

    auto-retry loading broken images, with exponential backoff.

  • v1.0 10.07.2023