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.

Ili estas versioj de tiu ĉi skripto, kie la kodo estas ĝisdatigita. Montri ĉiujn versiojn

  • v2.8 2023/08/24

    - 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 2023/08/17

    - 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 2023/08/14

    - 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 2023/08/12

    - 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 2023/08/10

    dragging fix for firefox

  • v2.3 2023/08/09

    - 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 2023/08/09

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

  • v2.1 2023/08/09

    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 2023/08/08

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

  • v1.15.1 2023/08/08

    Did I mention we rotate things now?

  • v1.15 2023/08/08

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

  • v1.14 2023/08/07

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

  • v1.13 2023/08/07

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

  • v1.12 2023/08/06

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

  • v1.11.1 2023/08/05

    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 2023/08/04

    - 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 2023/08/03

    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 2023/08/03

    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 2023/08/03

    - 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 2023/07/18

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

  • v1.6 2023/07/18

    Groundwork for multi-site support.

  • v1.5 2023/07/18

    - 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 2023/07/16

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

  • v1.3 2023/07/16

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

  • v1.2 2023/07/14

    - 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 2023/07/11

    auto-retry loading broken images, with exponential backoff.

  • v1.0 2023/07/10