I'm looking for some sort basic tutorials on how to code scripts for greasemonkey specifically for neopets. For example, I would like to be able to write a Lever of Doom auto lever puller from scratch.

Example:


set variables (times and avatar url)
if the avatar url is not present wait some time then redirect (this is the button press I assume)
otherwise, the avatar is there and you get a pop-up saying so.

Mainly these parts:
var HTML = document.body.innerHTML
function redirect(){document.getElementsByTagName('form')[1].submit()

Eventually I would like to be able to write my own bilge dice autoplayer, that's pretty much my goal.
If you have any experience I would really appreciate any help you can offer, so don't be afraid to post. Thanks!