How confusing, two people named DT making GM scripts for the shoutbox.
-dt-'s script seems to have some unresolved issues though, so maybe it's good to have competition.
quote:
Originally posted by the DtTvB
(Firefox only!)
Actually, it works in Opera too.
See
http://opera.com/support/tutorials/userjs/examples/#greasemonkey
I have a few suggestions though...
1) The include/exclude code could be improved. Here's what I'm using...
code:
// @include msghelp.net/shoutbox.php*
// @include *.msghelp.net/shoutbox.php*
// @exclude *action=stats*
// @exclude *action=edit*
To exclude pages > 1, this should do the trick...
code:
var linktags = document.getElementsByTagName('link');
for(var i=0; i<linktags.length; i++) {
if(linktags[i].rel == 'prev') return;
}
And to exclude other pages like theme, help, error, etc.
code:
if(typeof(document.msgform) == 'undefined') return;
2) It would be nice to have a switch to toggle the refresh on and off.
3) The refresh shouldn't touch the message field at all, it should just replace the shouts and the users online. I noticed that the refresh can interrupt my typing.
I'll probably post more suggestions/bugs later.