Greasy Fork is available in English.

AutoTOC

Automatically creates a table of contents for all HTML-headers on a web page.

< Feedback on AutoTOC

Review: Good - script works

§
Posted: 2022/01/02

Works great! Thanks for maintaining this relic!

IzzySoftAuthor
§
Posted: 2022/01/03

Glad you like it! I'm still using it myself as well.

§
Posted: 2022/01/25

So do I!

question: Rune https://userscripts-mirror.org/users/96 describes how to extend the script to H5 & H6 tags: http://electricdevelopment.blogspot.com/2005/07/user-script-autotoc.html#c112185327116043346

Any reason not to include that (simple?) update to current version?

IzzySoftAuthor
§
Posted: 2022/01/26

Any reason not to include that (simple?) update to current version?

Yes. Sites using H5/H6 while not using H1-H4 are rare. But with too many levels, the "drop-up" becomes hard to handle on some sites (I've experienced that even now with some sites and not having that added).

Thanks for the pointer, though! I'll add that to the Readme at Codeberg (which then will be sync'd here), so people can try how it works for them. If someone makes a PR making that an optional addition (e.g. with a check box next to the "drop-up" which persists its state), I'd certainly merge that.

Besides: that comment must refer to a different script, or a different version of the script, as it doesn't match any code line. Instead, there are multiple places that'd need to be adjusted, one even enumerating "h1, h2, h3, h4" – currently lines 23, 24 and 45-48.

Post reply

Sign in to post a reply.