<!-- thumbnail: https://i.sstatic.net/PSXjI.png -->
<!-- excerpt: The script you never knew you needed. -->

*This userscript is part of [SOMU (SO-mod-userscripts)](https://github.com/samliew/SO-mod-userscripts)*

# [Post Headers & Question TOC](https://github.com/samliew/SO-mod-userscripts/blob/master/PostHeadersQuestionToc.user.js)

- Sticky post headers to help when scrolling long posts / comment threads
  - User, revision history, post timeline links
  - Clicking on empty middle area scrolls to start of post (replaces URL hash)
  
<br>![screenshot](https://raw.githubusercontent.com/samliew/SO-mod-userscripts/master/images/Screenshot_2018-08-07_150823.png)

- Question Table of Contents of Answers in sidebar below Featured Posts module
  - Only shown when there are five or more answers
  - Answer score, accepted, user display name, indicates mods and deleted users, datetime
  - Sorted by current answer sort order (active/oldest/votes)
  - Clicking on answer links scrolls to start of post (replaces URL hash)
  - Toggle deleted answers in ToC
  
<br>![screenshot](https://raw.githubusercontent.com/samliew/SO-mod-userscripts/master/images/Screenshot_2018-08-07_150848.png)


<br>
##License

[MIT][1]


<br>
##Download

[Source][2] ([Install][3])


<br>
##Code

This userscript is part of [SOMU (SO-mod-userscripts)](https://github.com/samliew/SO-mod-userscripts)

[Bug reports][4], Forks, and PRs welcome!


  [1]: https://github.com/samliew/SO-mod-userscripts/blob/master/LICENCE
  [2]: https://github.com/samliew/SO-mod-userscripts/blob/master/PostHeadersQuestionToc.user.js
  [3]: https://github.com/samliew/SO-mod-userscripts/raw/master/PostHeadersQuestionToc.user.js
  [4]: https://github.com/samliew/SO-mod-userscripts/issues