Skip to content
/ tocit Public
forked from earshinov/tocit

My fork of earshinov/tocit for my suggested fixes and enhancements.

Notifications You must be signed in to change notification settings

netjeff/tocit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

TOCit!

A bookmarklet that displays a table of contents.

Demo

Installation

  • Drag the following link into your bookmarks bar: TOCit!

  • Alternatively, manually add a bookmark with an arbitrary title (preferable "TOCit!") and with the following code as the link address (URL):

javascript:(function(){function%20loadScript(a){var%20c=document.createElement('script');c.type='text/javascript';c.src=a;var%20d=document.getElementsByTagName('head')[0];d.appendChild(c)}loadScript('https://rawgit.com/earshinov/tocit/master/tocit.js')})();

Usage

In order to see the table of contents on a page, just keep the page open and activate the bookmark. If there are any recognisable headings, the table of contents will appear, collapsed by default, at the bottom of page.

Please note that the bookmarket may not work on some pages which impose security restrictions on running third-party scripts.

In most cases, using the bookmarklet requires Internet connection.

Credit

This is based on Rune Skaug's AutoTOC (here, license), enhanced to track page scrolling and accordingly update the item selected in the TOC.

About

My fork of earshinov/tocit for my suggested fixes and enhancements.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%