‘Next post’ and ‘Previous post’ links for posts in a sequence

Less Wrong would be stickier if there were links at the bottom of each post in The Sequences to the next and previous posts in that sequence.

I just added those links for each post in my own sequences: The Science of Winning at Life, Rationality and Philosophy, and No-Nonsense Metaethics.

I can’t do that for sequences written by somebody else. Perhaps one or more of the LW editors would be willing to start hacking away on that project?

Here’s the algorithm I executed:

  1. Open all the posts from one sequence, in order, in browser tabs.

  2. Go to first post in the sequence.

  3. Click ‘Edit’.

  4. Click ‘HTML’ and uncheck ‘Word Wrap.’

  5. Scroll to the bottom of the post (not counting notes and references) and paste in the following:

    <p>&nbsp;</​p>
    <p align=”right”>Next post: <a href=”“></​a></​p>
    <p align=”right”>Previous post: <a href=””></​a></​p>
    <p>&nbsp;</​p>
    <p>&nbsp;</​p>

  6. If post is first in sequence, remove ‘Previous post’ line.

  7. If post is last in sequence, remove ‘Next post’ line.

  8. Paste in URL and post title for remaining ‘Next post’ or ‘Previous post’ lines of HTML.

  9. Click ‘Update’, then click ‘Submit’.

  10. If this is the last post in the sequence, return 0. Else, move to next post in sequence and go to step #3.