|
mikehale
Guest
|
 |
« on: April 12, 2007, 10:34:10 AM » |
|
For those of you who have grease monkey installed on your firefox, i threw together this simple little script to refresh the page every 30 seconds if you are on the "show unread posts since your last visit" or "show new replies to your posts." page.
this script can be easily modified to support any simple machine forum though really.
rename OPGForumRefresh.txt to OPGForumRefresh.js. it'd be easier to install if i could keep the .js extension, but the forum won't let me upload that extension.
-crackie
|
|
|
|
« Last Edit: April 12, 2007, 10:37:23 AM by mikehale »
|
Logged
|
|
|
|
|
Latro
Guest
|
 |
« Reply #1 on: April 12, 2007, 10:44:05 AM » |
|
Does this mean that you're using Firefox? Or just messing around with Grease monkey?
|
|
|
|
|
Logged
|
|
|
|
|
mikehale
Guest
|
 |
« Reply #2 on: April 12, 2007, 10:46:11 AM » |
|
i'm a web developer. i have to use firefox for compatability. i use ie7 the majority of the time because it's faster. i do personally like firefox though.
basically, i have 2 monitors, and i'm just gonna have the forum update so i can keep an eye what's going on without having to click "show new...". i'm just that lazy.
*** EDIT *** ok. so 30 seconds may be a bit much. i changed mine to 60 seconds. click manage scripts in grease monkey, click edit on my script (this will pull up an editor) and do a find and replace of 30000 with 60000.
|
|
|
|
« Last Edit: April 12, 2007, 10:49:18 AM by mikehale »
|
Logged
|
|
|
|
|
Jedakiah
|
 |
« Reply #3 on: April 12, 2007, 10:50:32 AM » |
|
I just have reload every. I have it disabled though. :/
|
|
|
|
|
Logged
|
|
|
|
|
Latro
Guest
|
 |
« Reply #4 on: April 12, 2007, 10:53:34 AM » |
|
I just went to the firefox extensions site and they've added a lot of new more useful extensions...
|
|
|
|
|
Logged
|
|
|
|
|
mikehale
Guest
|
 |
« Reply #5 on: April 12, 2007, 10:57:05 AM » |
|
let me know of any suggestions. right now i'm at work and just did this really fast, but what i'm going to do is if there are any, i'm going to change the title to show like "XX new topics"
|
|
|
|
|
Logged
|
|
|
|
|
Latro
Guest
|
 |
« Reply #6 on: April 12, 2007, 11:07:47 AM » |
|
I just allowed .js files to be uploaded... repost?
|
|
|
|
« Last Edit: April 12, 2007, 11:11:10 AM by Latro »
|
Logged
|
|
|
|
|
mikehale
Guest
|
 |
« Reply #7 on: April 12, 2007, 11:10:09 AM » |
|
ok. also,i just noticed that when there is a new topic, smf plays a sound. so i guess that makes things fairly easy. just listen for the sound. 
|
|
|
|
|
Logged
|
|
|
|
|
mikehale
Guest
|
 |
« Reply #8 on: April 12, 2007, 11:11:59 AM » |
|
here it is, version .1
arg, the forum is forcing a download. usually with these you can just right click and do "install script". Here's what you can do. go into grease monkey, make a new script, and then when it opens up, copy and paste the code into the page that opens. or you can upload to the website, and just give me a link. then, you can right click on the link.
*** EDIT *** i'm gonna upload this to userscripts.org. that'll work.
|
|
|
|
« Last Edit: April 12, 2007, 11:15:35 AM by mikehale »
|
Logged
|
|
|
|
|
|
|
mikehale
Guest
|
 |
« Reply #10 on: April 12, 2007, 11:18:17 AM » |
|
|
|
|
|
|
Logged
|
|
|
|
|
mikehale
Guest
|
 |
« Reply #11 on: April 12, 2007, 11:19:10 AM » |
|
lol, thank you latro. user scripts will let other people see the script so other simple machines forum users can use it too 
|
|
|
|
|
Logged
|
|
|
|
|
mikehale
Guest
|
 |
« Reply #12 on: April 12, 2007, 11:56:41 AM » |
|
i just updated this again. basically i added a wildcard. this will now work with ANY simple machines forum. you can get the script at http://userscripts.org/scripts/show/8466 and if latro wants to update the one on the server than that would be great.
|
|
|
|
|
Logged
|
|
|
|
|
Latro
Guest
|
 |
« Reply #13 on: April 12, 2007, 12:26:34 PM » |
|
http://theopgclan.com/grease/8466.user.jsSo now when you're in Arsenals or RabidRobot (aka Storm) you'll also get the automatic refresh on posts.
|
|
|
|
|
Logged
|
|
|
|
|
mikehale
Guest
|
 |
« Reply #14 on: April 12, 2007, 12:29:34 PM » |
|
yup 
|
|
|
|
|
Logged
|
|
|
|
|