Adding a Recent-Posts button at the bottom of each page

k15n1

Almost Self-Reliant
Joined
Nov 28, 2010
Messages
971
Reaction score
22
Points
115
I find myself scrolling back to the top of the page often, so I made a greasemonkey script that adds a link to the bottom of forum pages. If you have Firefox, you can use it, too.


// ==UserScript==
// @name recent posts
// @namespace sufficientself.com
// @description Creates a "Recent Posts" button at the bottom of the page
// @include http://sufficientself.com/*
// @include http://www.sufficientself.com/*
// @version 1
// ==/UserScript==


var link = document.createElement('a');
link.setAttribute('href', 'http://sufficientself.com/forum/search.php?action=show_24h');
var link_text = document.createTextNode("Recent Posts");
link.appendChild(link_text);
document.body.appendChild(link);
EDIT: Woops, allow www.sufficientself.com, too.
 

Nifty

Super Self-Sufficient
Administrator
Joined
Nov 13, 2007
Messages
1,376
Reaction score
228
Points
227
Good ol' greasemonkey!!

Probably a bit over the heads of many members, but still pretty cool. Good job!
 

Denim Deb

More Precious than Rubies
Joined
Oct 21, 2010
Messages
14,993
Reaction score
616
Points
417
Nifty said:
Good ol' greasemonkey!!

Probably a bit over the heads of many members, but still pretty cool. Good job!
Like me. :hide
 

~gd

Lovin' The Homestead
Joined
May 29, 2010
Messages
1,812
Reaction score
3
Points
99
Nifty said:
Good ol' greasemonkey!!

Probably a bit over the heads of many members, but still pretty cool. Good job!
But there IS a recent Posts button at the bottom of each page already and Nifty didn't sneak it in yesterday either. So I award the reinventing the wheel award.
 

FarmerChick

Super Self-Sufficient
Joined
Jul 21, 2008
Messages
11,417
Reaction score
14
Points
248
Show recent posts

at the end of the thread

if you are done reading, just click and you are back to the main board.
 
Top