Sunday, October 27, 2013

Auto-Refresh Any Webpage Every Five Minutes (useful for Fantasy Football scores?)

Here is a script I put together tonight because I wanted my laptop to sit on the coffee table and display my two Fantasy match-ups, refreshing the scores every five minutes or so.

Here is what the script looks like in action:


You'll see a floating yellow box at the upper left corner of the browser window, telling you how many seconds remain until the page is reloaded. 

Prerequisites:
Firefox with the  Greasemonkey Add-On
Chrome with Tampermonkey

Go to here and click the install button.

By default the script will refresh http://football.fantasysports.yahoo.com/ every five minutes, but if you add any other URL to the include list, it should also work.

This script and others I've written are also on github.