Skip to content

GitHub issue add details

Rob Garrison edited this page Oct 24, 2022 · 13 revisions

A userscript that adds a button to insert a details block into comments

  • A button is added to the issue/pull request comment toolbar.
  • Clicking the button will add a <details> block with the selected text inside.
  • Adding an "open" attribute to the details element will start with the container expanded. A hint using "not-open" is included and is ignored unless changed to "open".
  • A blank line is included after the summary to allow markdown elements to render properly inside of the details container (ref).
  • Click this link to install from GitHub; or, install from GreasyFork or OpenUserJS.

Screenshot

Change Log

Version 1.0.12 (2022-10-24)

  • Fix in mutations file allows this to work in PR comments now.
  • Update dependencies.

Version 1.0.11 (2022-02-14)

  • Update selector.

Version 1.0.10 (2021-11-30)

  • Fix selector.

Version 1.0.9 (2021-07-21)

  • Update mutation script.

Version 1.0.8 (2021-01-31)

  • Update mutation script.

Version 1.0.7 (2020-03-19)

  • Code cleanup.

Version 1.0.6 (2019-02-16)

  • Update GitHub icon.

Version 1.0.5 (2019-01-28)

  • Update mutation script.

Version 1.0.4 (2018-10-05)

  • Update mutation script.

Version 1.0.3 (2018-05-17)

  • Update mutation script.

Version 1.0.2 (2018-05-10)

  • Update mutation script.

Version 1.0.1 (2018-04-09)

  • Update mutation script url.

Version 1.0.0 (2018-01-05)

  • Initial commit
Clone this wiki locally