GitHub Table of Contents

A userscript that adds a table of contents to readme & wiki pages

These are versions of this script where the code was updated. Show all versions.

  • v2.1.6 2024-02-17

    feat: use eslint-plugin-userscripts (#202)

  • v2.1.6 2022-11-08 TOC: properly detect Gist markdown files
  • v2.1.5 2022-10-24 Global: Update dependencies
  • v2.1.4 2022-04-30 Add missing `GM.registerMenuCommand` Needed for Tampermonkey
  • v2.1.3 2021-07-21 Mutation: Update all
  • v2.1.2 2021-02-21 Add @supportURL pointing to the GitHub repo (#137) (per https://github.com/JasonBarnabe/greasyfork/issues/712#issuecomment-649176266 )
  • v2.1.2 2021-01-31 TOC: Fix logged out menu
  • v2.1.1 2021-01-31 TOC: Increase collapse hit box & fix redundant binding
  • v2.0.6 2021-01-31 Mutation: Add menu observer
  • v2.0.5 2020-09-08 Global: add global comment
  • v2.0.5 2020-08-09 TOC: Don't include sidebar headers. Closes #124
  • v2.0.4 2020-07-23 TOC: Hide on header double-click
  • v2.0.3 2020-07-23 TOC: double-click header to toggle. Closes #118
  • v2.0.2 2020-07-17 TOC: Fix Google translate broken links. Closes #117
  • v2.0.1 2019-09-06 TOC: Fix title update DOM target. See #102
  • v2.0.0 2019-09-02 TOC: Position popup based on window center. Closes #102
  • v1.3.4 2019-04-28 TOC: Update after merge of #80 Thanks @ottnorml!
  • v1.3.3 2019-04-28 Update TOC position due to Github design update (compare PR #43 && #55) (#80)
  • v1.3.3 2019-04-28 TOC: Code Cleanup, TOC: Fix clickable toggle area
  • v1.3.2 2019-04-28 TOC: Fix header alignment
  • v1.3.1 2019-03-30 TOC: Update header selector
  • v1.3.0 2019-02-17 TOC: Make compatible with GM. Fixes #69 Also reduce min headers from 2 to 1, Global: Update GitHub icon
  • v1.2.21 2019-01-29 Meta: Fix update mutation script, Global: Update mutation script
  • v1.2.20 2018-10-05 Mutations: Update comment load selector
  • v1.2.19 2018-09-19 TOC: bump version
  • v1.2.18 2018-09-19 Update TOC position due to Github design update (compare PR #43) (#55)
  • v1.2.18 2018-08-01 TOC: When collapsed, add padding to header & align button, TOC: Darken collapsed button
  • v1.2.17 2018-06-16 TOC: Change class names to prevent addon conflicts. Fixes #48
  • v1.2.16 2018-05-17 Global: Update mutation script
  • v1.2.15 2018-05-10 Global: Update mutation script
  • v1.2.14 2018-04-16 TOC: Bump version & update Authors
  • v1.2.13 2018-04-16 Moves the TOC by one pixel down to not overlap the top navigation (#43)
  • v1.2.13 2018-04-09 Global: update mutation script url
  • v1.2.12 2018-01-18 Update assets & fix linting
  • v1.2.11 2017-10-08 Global: update mutation script url
  • v1.2.10 2017-08-22 TOC: Update to use new header class
  • v1.2.9 2017-05-16 Global: update license & bump version
  • v1.2.8 2017-04-24 Global: update mutation url Not a big change for these scripts as none are set to run-at document-start
  • v1.2.7 2017-04-14 Imported from URL
  • v1.2.6 2017-04-14 Imported from URL
  • v1.2.4 2017-04-04 Imported from URL
  • v1.2.3 2017-04-01 Synced from GitHub - TOC: Collapse arrow now correctly groups sub-headers
  • v1.2.2 2017-03-25 Synced from GitHub - TOC: Use pjax & fix linting - TOC: Add link to docs
  • v1.2.1 2016-12-29 Synced from GitHub - Clean up linting issues
  • v1.2.0 2016-07-29 Synced from GitHub - TOC: Add z-index to icon (fixed headers) & convert to ES6
  • v1.1.2 2016-07-05 Synced from GitHub - TOC: Arrows will again collapse content
  • v1.1.1 2016-06-06 Synced from GitHub - TOC: Only clicking on an arrow will toggle the sub-group
  • v1.1.0 2016-06-06 Synced from GitHub - TOC: Code cleanup - TOC: Shift+click now toggles all same level items - TOC: Don't show TOC when less than 3 listings
  • v1.0.1 2016-05-25 Imported from URL
  • v1.0.0 2016-03-29 Imported from URL