AutoTOC

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

< Feedback on AutoTOC

مراجعة: Good - script works

§
Posted: 02-01-2022

Works great! Thanks for maintaining this relic!

IzzySoftمؤلف
§
Posted: 03-01-2022

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

§
Posted: 25-01-2022

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?

IzzySoftمؤلف
§
Posted: 26-01-2022

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

تسجيل الدخول إلى مرحلة ما بعد الرد.