Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Facebook Refresh

Reloads Walls, News Feeds, Alerts, and Your Inbox Automatically. Now with auto-poke and message alerts!

Tired of having to constantly reload your page in order to see if someone has replied to your message or your friends updates in the News Feed? Well with Facebook Refresh you will never have to do that again. The script automatically updates most parts of the page every 30 seconds. No more waiting for a complete page reload. Makes messaging a snap since you can just leave that message page open and have Facebook Refresh get the new message. Plus message alerts are now present in the title so you can just leave Facebook in a tab as you wait for a reply to your message.

Change Log
January 05 - added compatibility for a change in UnFuck Facebook

Update
I've added support for two Facebook userscripts.
Highlight Inbox Link - by Jordon Kalilich
UnFuck Facebook - Another Script by Me

You can activate these scripts from the Tools → Greasemonkey → User Script Commands menu. I suggest you install these two scripts above also because I don't run them until the page has been reloaded, which means you will see the unmodified pages for thirty seconds without the original scripts installed.



Issues
- Javascript Errors thrown by Facebook on the Home Page. Normally I parse out javascript to stop this, but doing so on the Home Page breaks the script completely. You're just going to have to deal with this error until I figure out a way to fix it.
- Other scripts for Facebook may be effected because I load and replace large parts of the page, and since I use XHR the code isn't parsed with Greasemonkey. However, my script now has the option of removing apps and adds in the News Feed, and highlighting the Inbox when you have a message.
- Breaking the Back Button

Coming Soon...
Make autopoke feature less sketchy



Jan 25, 2008
chezzo User

hi, sorry but i haven't checked this page in ages!
i just updated to the new version - thanks for taking my suggestion into account... i can't seem to get it to work though. i tried marking an old message as unread but although this made my inbox link turn red it didn't update the page title. also, it would be cool if the title could change when you have new "request" and "update" notifications too

i'm also not too keen on the autopoke feature (in fact, i've never poked anyone ever) and so removed the code for it, but it would be nice if there was an option to turn it off so i didn't have to do this

also, this page doesn't exactly make it clear that for certain features to work other scripts have to be installed (e.g. app nuker so that apps do not appear in the feed)

i haven't tried the unfuck feature because i like certain applications, so can't comment on how that works

but aside from all that moaning (sorry!) i love it, and thanks very much for all your work :)


 
Dec 9, 2007
sizzlemctwizzle Script's author

Well there you have it. An auto-poke feature.


 
Dec 3, 2007
sizzlemctwizzle Script's author

Well chezzo I finally got those message notifications in the the title so you can leave Facebook in a tab. Sorry it took me over two months but it was a difficult task. I had to write the code from scratch and getting it to stay even when you had a message open proved to be quite a challenge. I know the code isn't perfect so make sure to report any bugs you might find.


 
Nov 30, 2007
sizzlemctwizzle Script's author

I just got the go ahead from the author of Facebook Poke O' Matic. Stay tuned for future updates.


 
Nov 24, 2007
sizzlemctwizzle Script's author

here's a unofficial autopoke version of this script hosted on my own site. http://medleymind.com/f_reload.user.js

I've just never bothered to write the code to turn this off and on in the menu, and plus it would mean I was stealing code from John Watson's Facebook Poke O' Matic.


 
Nov 22, 2007
sizzlemctwizzle Script's author

I have to make this compatible with my unfuck script sometime but I'm lazy. seeing the bad parts of facebook after 30 seconds will probably motivate me though.


 
Oct 4, 2007
sizzlemctwizzle Script's author

you have to refresh the page in the past five minutes to be considered online.


 
Oct 2, 2007
TexasJon User

Question about online status:

Does a user have to refresh a fb page or open a new one to be considered online? Or, does leaving the page open and unattended cause the user to appear online?

Thanks.


 
Sep 30, 2007
chezzo User

how about making the page title change when you have new notifications like with this one for myspace:
http://userscripts.org/scripts/show/6365
then i don't have to keep checking it every few minutes :)


 
Sep 28, 2007
Kazan User

add removal is not functioning


 
Sep 9, 2007
sizzlemctwizzle Script's author

Thanks for letting me know about that. I have no idea how that got in there.


 
Sep 9, 2007
Jordon Kalilich Scriptwright

A line break on line 68 prevents the script from working.


 
Sep 9, 2007
sizzlemctwizzle Script's author

actually I just forgot to make sure the function was preforming on the frame. it should work now.


 
Sep 8, 2007
Jordon Kalilich Scriptwright

Minus the GM_log, of course. I just had that in there to make sure it was working.


 
Sep 8, 2007
Jordon Kalilich Scriptwright

One more thing: Highlighting the inbox link doesn't work unless I place

if (highlight == true) {
GM_log('highlight true');

highlightInbox();

}

after

myframe.contentDocument.close();

myframe.src = "about:blank";

Once again, thanks for the great script!


 
Sep 8, 2007
Jordon Kalilich Scriptwright

Thanks. I just noticed that you might want to change lines 32 and 33 to the following:

GM_registerMenuCommand("Don't Highlight Inbox", function(){GM_setValue("highlight", false);});

highlight = GM_getValue("highlight", false);

Keep up the good work!


 
Sep 8, 2007
sizzlemctwizzle Script's author

Alright I added support for your script. You can enable it from the User Script Commands menu like the others.


 
Sep 8, 2007
Jordon Kalilich Scriptwright

Could you add a line to the script for compatibility with my Highlight Inbox Link script? When I put

if (window.gm_highlightInboxLink) window.gm_highlightInboxLink();

on line 111 of your script, it calls my script (turning the inbox link red on new messages) whenever your script updates the home page.

Or you could write my script into yours if you want. It's very short.


 
Sep 6, 2007
sizzlemctwizzle Script's author

Now if I could only get rid of those javascript errors facebook throws out.


 
Sep 5, 2007
Praveen Mark... User

you are AWESOME!


 
Sep 3, 2007
sizzlemctwizzle Script's author

You can now block apps from the Tools → Greasemonkey → User Script Commands menu.


 
Sep 3, 2007
sizzlemctwizzle Script's author

My script is now compatible with Facebook app nuker. You will need to change the no_apps setting to true in order to activate it. Thanks for the suggestion.


 
Sep 3, 2007
Praveen Mark... User

it breaks the facebook app nuker script. this is a great idea, but i chose that over this


 
Sep 1, 2007
sizzlemctwizzle Script's author

I'm so glad I wrote this script. Not having to reload my page over and over kicks so much ass.


 
Aug 25, 2007
yanksoccer117 Scriptwright

great idea but could you also add changes in status (online or offline). That would be awesome. Thanks.


You could comment on this script if you were logged in.