It’s very common for me to program while read documents in a web browser, and I think it’s annoying to switch between the browser and the text editor constantly.

Here I have a few Elisp functions defined, which allow me to control Firefox to scroll, close tabs and so on.

Control Firefox to Scroll/Refresh/Close from Emacs
wenshanren.org