A webextension which adds a button to the toolbar. Clicking on the button will take you to the top of the webpage.

Download for Firefox