title: How to inject a button that will execute a function?
body: <p>I'm having real difficulties using Greasemonkey and Firefox javascript to inject a button that, when selected, will execute a function.</p>
  
  <p>For example, I am trying to place the button right after the "Unanswered" button on <a href="https://stackoverflow.com/questions/ask">the SO "Ask a Question" page</a>.</p>
  
  <p>I wish it to run a function that will do <em>anything</em>, say <code>alert ("Hello World")</code> or <code>console.log('TEST start')</code>, for example.</p>
  
  <p>Can someone please post up some sample code to make this work?  Once I have a working sample, then I should be able to go from there.</p>
  
  <p>Many thanks in advance.</p>