SpaceBattles Reader Mode

Some minor tweaks to help enable and preserve reader mode on SpaceBattles and SufficientVelocity.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
Ultrabenosaurus
1日のインストール数
0
累計インストール数
2
評価
0 0 0
バージョン
1.14
作成日
2025/08/17
更新日
2026/04/03
大きさ
11.8KB
ライセンス
GNU AGPLv3
対象サイト

Some minor tweaks to help enable and preserve reader mode on SpaceBattles and SufficientVelocity:

  • If not in reader mode, adds a reader mode button next to the chapter title at the top of the post
  • If in reader mode, post number links will now keep you in reader mode (for copying / sharing)
  • Pushes the post ID of the chapter (Threadmark) to the address bar as you scroll*
  • Adds a floating button in the bottom-left to show a mini Table of Contents for Threadmarks on the current page
    • if not in reader mode, also shows scroll icons next to chapter links to enable reader mode
    • (mini-ToC is disabled by default; toggle from your userscript extension menu)

*May or may not work well with your browser's back button; it's using history.pushState so it should play nice, in theory.

Space Battles' own lists and menus of Threadmark links don't care if you're in reader mode and always disable it. Unfortunately, it is impossible to "fix" those links as the amount of pages in a thread change depending on whether non-Threadmark posts are visible or hidden, so it is impossible to determine what reader-mode-page any given Threadmark post should be on to create the correct link. Hence, this userscript adds an optional mini-ToC menu to try and alleviate the problem as much as possible.

The attached screenshots may be slightly out of date as I tweak the styling and features exactly; I will update them for any big changes, so they are generally representative of the optional mini-ToC.

Developed in Tampermonkey v5.3.3 using Firefox 141.0.2 (64-bit) on Fedora Linux and Fennec F-Droid 141.0.0 on Android 16.

Still working in Tampermonkey v5.4.1 using Firefox 149.0 (64-bit) on Solus Linux and Fennec F-Droid 149.0.0 on Android 16.