User:GhostInTheMachine/TalkHelper1

Purpose
This script helps when reading a long talk page.

The script does not alter any article but it highlights talk posts so that they are easier to read.

Use
The script hunts for timestamps previously found by the CommentsInLocalTime gadget and selects any that are for yesterday and today.

It then adds a background colour and border around each of the posts.

If any posts were found, it will add a menu item showing the count. Clicking the menu item will scroll to the first post.

Prerequisites
This script requires the CommentsInLocalTime gadget.


 * 1) Go to the gadgets tab of your preferences
 * 2) Enable "Change UTC-based times and dates, such as those used in signatures, to be relative to local time"
 * 3) Save

Installing
Add the following line to your common.js file if you want version 1 or this line if you want the latest version

Alternatives
Since they were created in 2004, talk pages have been edited in the same way as any other page.

There is currently a WMF project to improve talk page editing, but I don't think that this project addresses talk page readability.

Possible improvements

 * Add the nav menu items to the sidebar instead of the top menu
 * Add a navigation menu to the highlighted posts