Skip to main content


❓ Does anyone know of a #Firefox :firefox: addon that shows the structure of the current webpage based on <h1>, <h2>, etc. elements as a table of contents in the sidebar?

#askfedi #askfediverse #askmasto #askmastodon

in reply to [moved] Floppy πŸ’Ύ

I've been looking for something like this for ages. If I had a habit of creating Firefox addons, I would have done it by myself already.

JavaScript hackery got me desired results as a pop-up window, but really a proper solution would be more pleasant.

in reply to [moved] Floppy πŸ’Ύ

The reader mode built into Firefox should include a table of contents, which must be trivial to implement, because reader mode already parses the article structure (in order to display the headings correctly), and putting a summary of that somewhere would definitely be doable ... Why hasn't anyone @mozilla thought of that? 🧐
in reply to Pixelcode Apps ​

@pixelcodeapps I double-checked the reader mode and couldn't find a table of contents there. (But I think I also faintly recall having seen one there some time ago.)

Anyway, I agree, extracting the headline structure from a webpage is not difficult. Having anchor-links in a sidebar cannot be that complicated. I have seen more complicated things done in the sidebar.

Maybe it's a permissions problem, but I can't recall this having been a feature any time some years ago AFAICT.

@mozilla

in reply to [moved] Floppy πŸ’Ύ

Something like this? addons.mozilla.org/en-US/firef…

Disclaimer: I have never used this plugin, but it looks like it might be close to what you are looking for?

in reply to eivindmork

@eivindmork Thanks! Indeed that's pretty close and is usable. My hacky JavaScript solution is an uglier version of this.

Originally I hoped for an addon that would just occupy space in the browser-native sidebar. I think a table of contents is the prime example for a use case of the sidebar and I don't understand how noone uses it that way.

This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.

⇧