Firefox go to very first page in history stack

There are two ways an extension can do this....just opening window.history[0] and going back window.history.go(-(window.history.length - 1)) any preference? i would find this useful too and am thinking about putting together a simple button/js to do it


As a curiosity, with FF addons Pentadactyl and Vimperator going to the beginning of page history is just issuing a back command with enough pages, e.g. 100H.

To elaborate, these addons map Vim's movement commands to movements inside the page (i.e. l to move right and j to move down) and "nearest matches" of those to movements in page's history, so, uppercase H will go back and L forward. Like in Vim, movement commands take amount as a prefix, thus 100H will issue one hundred 'back' commands, effectively moving to the beginning of the page history, as the default FF's page history size is 50, IIRC.

The complete key cheat sheet can be read issuing :help keyboard-shortcuts (in Pentadactyl, at least, I don't have Vimperator on this machine).