I think this is a better test:
($(window).scrollTop() + document.body.clientHeight) > $('.footer').position().top
It checks if top of the footer is above the bottom of the viewport.
I've added your suggestion. Will update the chrome and firefox webstores soon.