How do I make a table of contents in a plain text document interactive using a Greasemonkey script? [closed]

StackOverflow https://stackoverflow.com/questions/13391551

سؤال

I came across a fairly recent RFC on "URI Fragment Identifiers for the text/plain Media Type". I ran a few tests on the URL itself in Chrome and IE to no avail. For example:

https://stackoverflow.com/robots.txt#line=50

Should work similar to:

https://stackoverflow.com/about#footer

How do I write a Greasemonkey script to do the following:

  • Map the table of contents to the line it references and add a hyperlink to each table of contents listing which maps to the respective line number?
هل كانت مفيدة؟
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top