Re: Topic going to bottom of thread?
from another thread in i responded to:
So I decided to fix this. Here is a script you can save as 'anything.user.js' and "File->open" it in firefox after you install greasemonkey. You can also load it into Chrome as an extension.
<div class="ubbcode-block"><div class="ubbcode-header">Code:</div><div class="ubbcode-body ubbcode-pre" ><pre>
// ==UserScript==
// @name first post snipershide
// @namespace
http://foo.com
// @description go to first post in thread on snipershide.com
// @include
http://www.snipershide.com/forum/ubbthreads.php*
// ==/UserScript==
var tda = document.getElementsByClassName('topicsubject');
var tdb = document.getElementsByClassName('alt-topicsubject');
var tdc = document.getElementsByClassName('new-topicsubject');
var tdd = document.getElementsByClassName('new-alt-topicsubject');
// file:///home/vinson/fix_ubb_newpost.user.js
for (var i = 0; i < tda.length; i++) {
var link = tda
.getElementsByTagName('a')[0];
link.href = link.href.replace(/&gonew.*/i, '')
}
for (var i = 0; i < tdb.length; i++) {
var link = tdb.getElementsByTagName('a')[0];
link.href = link.href.replace(/&gonew.*/i, '')
}
for (var i = 0; i < tdc.length; i++) {
var link = tdc.getElementsByTagName('a')[0];
link.href = link.href.replace(/&gonew.*/i, '')
}
for (var i = 0; i < tdd.length; i++) {
var link = tdd.getElementsByTagName('a')[0];
link.href = link.href.replace(/&gonew.*/i, '')
}
</pre></div></div>