Made extension work for Firefox

Oops. It turns out $(document.body).scrollTop only works for webkit. $("body, html").scrollTop should work for all browsers.