The link you have been given already has a further link to a code snippet section. Once you've worked out what you need to do, create a list of steps you need in order to get there, utilize the snippets of code you need from that link then fill in the gaps, possibly posting any questions then. This forum is not really set up to cater for creating tutorials on how to create individual, Firefox extensions.