How to determine why a Greasemonkey script is not running [duplicate]

you can write logs everywhere in your scripts to get better traces of what if being done in them: http://wiki.greasespot.net/GM_log More info: http://wiki.greasespot.net/Greasemonkey_Manual:Other_Useful_Tools#JavaScript_Console Another tip: Take a look at the whole greasemonkey wiki. They have a lot of good stuff in there: http://wiki.greasespot.net/Main_Page

alert a variable value

A couple of things: You can’t use new as a variable name, it’s a reserved word. On input elements, you can just use the value property directly, you don’t have to go through getAttribute. The attribute is “reflected” as a property. Same for name. So: