// Forum Topic page Link updater
//
// Purpose:
// --------
// This script fires on a prospers.org/forum to replace
// "Go Down" and "Go Up" hyperlinks labels to become
// "Page Top" and Page Bottom"
//
// Version History:
// ----------------
// Version Date Geek Comments
// ------- ------- ------ -----------------------------------
// 1.0 04/15/2007 pwrfin Created.
//
// Installation:
// -------------
// This is a Greasemonkey user script.
//
// To install, you need Greasemonkey: http://www.greasespot.net/
// Then restart Firefox and revisit this script.
//
// Under Tools, there will be a new menu item to "Install User Script".
// Accept the default configuration and install.
//
// To uninstall, go to Tools/Manage User Scripts,
// select "Forum Topic page Link updater", and click Uninstall.
//
// --------------------------------------------------------------------
// ==UserScript==
// @name Forum Topic page Link updater
// @namespace http://prospers.org/forum
// @description Replace forum topic page link updater
// @include http://prospers.org/forum
// @include http://www.prospers.org/forum
// ==/UserScript==
window.addEventListener("load", function(e)
{
var myBody = document.body;
if (myBody)
{
myAtags = myBody.getElementsByTagName("a");
for (var i = 0; i < myAtags.length; i++)
{
var a = myAtags[i];
if(a.href.match("#lastPost") || a.href.match("#bot"))
{
// Replace Go Down to Page Bottom
if(a.innerHTML.match("Down"))
a.innerHTML = "Page Bottom";
}
else if(a.href.match("#top"))
{
// Replace Go Up to Page Top
if(a.innerHTML.match("Up"))
a.innerHTML = "Page Top";
}
};
}
}, false);