Since I was already bringing up the past pleasures... I'll archive this one here as welll... This script is very nice to have when you are on a loooong web page (like a spec or something) and need a Table of Contents. Look at the following illustration for an example (from the CSS1 spec):
Just drag this link to your Bookmarks Toolbar, and click it when you need a TOC. Quite effective (just click it to see the effect on the current page...):
A userscript/Greasemonkey version of the script is available at userscripts.org, but I actually find the Bookmarklet more attractive myself.
Oh, and it only works with Firefox. Feel free to create your own version for IE, I'll be happy to link to it from here...

I prefer the ability to put Table of Contents in the sidebar with Alt+O (letter o) doesn't get in the way and easily toggled in or out. If you change a page the TOC changes with it. Each line is a link as in other TOC things.
Document Map :: Firefox Add-ons
https://addons.mozilla.org/firefox/475
Runs in any version of Firefox, just turn off compatibility test.
Posted by: David McRitchie | 12 February 2009 at 17:27
Hi. Thank you for the bookmarklet. It seems nice and useful for me. However, I would like if it could determine the section of the page I'm currently reading and select the corresponding item in the TOC. It helps you to determine what part of the document you are reading and makes using the TOC for document navigation a bit easier. Most desktop viewer programs do that.
So, I made a quick hack to allow that and put the modified code at [1]. If you consider it useful, you may incorporate the changes into your version. There is also a patch [2], which you may prefer to use instead of viewing the [1] version and comparing it to current yours.
So far I tested it at one page [3]. If I find bugs on other pages in the future and fix them, I will put the changes to [1] and notify you, if you wish.
[1] https://github.com/earshinov/tocit
[2] http://pastie.org/1726785
[3] http://usethics.ru/blog/lib/testing_by_the_cheap/ (in Russian)
Posted by: Eugene | 28 March 2011 at 17:44