Bitbucket Collapse In Comment

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

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Autor
Mottie
Denně instalací
0
Celkem instalací
41
Hodnocení
1 0 0
Verze
0.1.1
Vytvořeno
28. 04. 2017
Aktualizováno
16. 05. 2017
Size
6,6 KB
Licence
MIT
Spustit na

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 bitbucket collapse markdown userscript.
  • Use the userscript addon to change these settings (see screenshot below):
    • "Set Bitbucket Collapse In Comment Max Lines" to the number of lines within a block needed to add a header (set to 10 by default).
    • "Set Bitbucket 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.

bitbucket collapse in comment

Hosted with ♥ at Bitbucket