made the script Greasemonkey compatible