I'm looking for a way to get greasemonkey to execute the script once a specific key is pressed. For example, a web page would load normally, then after the user presses the defined key, the script would run a specified function.
I've tested the function and it works, but only when the page has loaded. The script doesn't have any effect when changes are made to the page after it has loaded.
I figure that if the script would wait for the a keypress, the user could press the key after all changes have been made to the page.
Any ideas?
I've tested the function and it works, but only when the page has loaded. The script doesn't have any effect when changes are made to the page after it has loaded.
I figure that if the script would wait for the a keypress, the user could press the key after all changes have been made to the page.
Any ideas?
