GitHub Collapse In Comment

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

目前为 2016-07-30 提交的版本。查看 最新版本

作者
Mottie
评分
0 0 0
版本
1.0.1
创建于
2016-06-27
更新于
2016-07-30
大小
7.7 KB
许可证
https://creativecommons.org/licenses/by-sa/4.0/
适用于

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 [[GitHub-collapse-markdown]] userscript.
  • Use the userscript addon to change these settings (see screenshot below):
    • "Set GitHub Collapse in Comment Max Lines" to the number of lines within a block needed to add a header (set to 10 by default).
    • "Set GitHub Collapse in Comment Initial State" to false to not have the blocks initially collapsed (true by default).

github-collapse-in-comment

Hosted with ♥ at GitHub

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址