SpaceBattles Reader Mode

Some minor tweaks to help enable and preserve reader mode on Space Battles.

這裡只顯示彼此間有代碼差異的版本。 顯示所有版本。

  • v1.13 2025-09-04

    fix issue preventing mini-ToC if no Reader Mode button on post

  • v1.12 2025-09-01

    change "chapter" to "threadmark" in link title attributes

  • v1.11 2025-09-01
    • Add title attributes to links for hover text and screen readers
    • Replace scroll-to-top link in mini-ToC with watch / unwatch button
  • v1.10 2025-09-01

    make mini-ToC hidden by default again

  • v1.10 2025-09-01

    disable console.log I stupidly left in

  • v1.10 2025-09-01

    added scroll icons with reader-mode links to mini-ToC if not in reader mode, tweaked mini-ToC builder code and CSS accordingly

  • v1.9 2025-08-30

    add link to top of page in mini-ToC

  • v1.8 2025-08-30

    fix error building mini-ToC if no pagination

  • v1.7 2025-08-29

    add RSS link to top of mini-ToC

  • v1.6 2025-08-29

    add highlight to current chapter in mini-ToC

  • v1.5 2025-08-28

    finalise mini-ToC functionality

  • v1.4 2025-08-28

    simplify menu command handling

  • v1.4 2025-08-28

    fix menu command handling on mobile

  • v1.4 2025-08-28

    use GM functions to let use toggle the Threadmark mini-ToC

  • v1.3 2025-08-28
  • v1.3 2025-08-28

    add bulk of code ready for floating mini-table-of-contents

  • v1.2 2025-08-19

    tweak code layout, add chapter title to HTML title in the scroll event listener

  • v1.1 2025-08-17

    Added a scroll listener to add chapter post IDs to the URL hash, to help users keep their place.

  • v1.0 2025-08-17