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.
 
Good ol' greasemonkey!!

Probably a bit over the heads of many members, but still pretty cool. Good job!
 
Nifty said:
Good ol' greasemonkey!!

Probably a bit over the heads of many members, but still pretty cool. Good job!
Like me. :hide
 
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.
 
Show recent posts

at the end of the thread

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