@jen You can do:
- UserEvent beforeLoad
- Get the form
- Check if the button is there
- If yes do nothing
- If button is not there add a new button to the form
- Attach a Client Script to the form with the function to be called on the custom button click.