Bitbucket Collapse Markdown

A userscript that collapses markdown headers

질문, 리뷰하거나, 이 스크립트를 신고하세요.
개발자
Mottie
일일 설치수
0
총 설치수
56
평점
1 0 0
버전
0.1.1
생성
2017-04-28
갱신
2017-05-16
라이선스
MIT
동작 사이트

A userscript that collapses markdown headers

  • This script makes all markdown headers clickable and toggles the view of all content between same level headers (e.g. between H2 headers).
  • It works on overview, source, pull requests, issues, comment preview, & wiki pages. Pretty much everywhere on bitbucket.
  • Click on any header to toggle the view of the content below it.
  • Use Shift + Click to toggle the view of all same level header content.
  • When the content of a header is expanded, all sub-headers are also expanded.
  • Links within the header are still clickable.
  • Use the userscript addon to change these settings (see screenshot below):

    • "Set Bitbucket collapse markdown state" to collapsed (expanded by default) which collapses all header content initially.
    • "Set Bitbucket collapse markdown colors" to an JSON array with six color values (accepts named, hex, rgb, hsl, etc). For example, these six colors apply to the H1 through H6 header arrows respectively:

      // palette generated by http://tools.medialab.sciences-po.fr/iwanthue/
      // (colorblind friendly; soft)
      ["#6778d0", "#ac9c3d", "#b94a73", "#56ae6c", "#9750a1", "#ba543d"]
      
    • After changing either of the above options, make sure to reload the page (Shift + F5) to have the updated setting take effect.

  • Can be used along with the bitbucket collapse in comment userscript.

bitbucket collapse markdown settings

bitbucket collapse markdown

Hosted with ♥ at Bitbucket