http://hawkee.com/snippet/1722/ purports to do exactly what you need, but there are complaints that it no longer works. Nevertheless, it may provide a useful starting point for you to work up your own.