GitLab Collapse In Comment

A userscript that adds a header that can toggle long code and quote blocks in comments

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
Mottie
1日のインストール数
0
累計インストール数
45
評価
1 0 0
バージョン
0.1.0
作成日
2017/05/24
更新日
2017/05/24
大きさ
6.01KB
ライセンス
MIT
対象サイト

A userscript that adds a header that can toggle long code and quote blocks in comments

  • The block header:
    • Allows the toggling of the long code & quote block views.
    • Includes the code language based on the syntax highlighting class name; if highlighting is not applied, "Block" is used as the default name.
    • Includes the number of lines within the block.
    • Click the header to toggle the view of the content immediately below the header.
    • Use Shift + Click to toggle all the view of all blocks within the same issue comment.
  • Can be used along with the GitLab-collapse-markdown userscript.
  • Use the userscript addon to change these settings (see screenshot below):
    • "Set GitLab Collapse in Comment Max Lines" to the number of lines within a block needed to add a header (set to 10 by default).
    • "Set GitLab Collapse in Comment Initial State" to expanded to not have the blocks initially collapsed (collapsed by default).
    • After changing either option, make sure to reload the page (Shift + F5) to have the updated setting take effect.

Hosted with ♥ at GitLab

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元