Storing user login/password input in a Greasemonkey script on install
问题 I'm doing a Greasemonkey script that communicates with the Redmine ticket manager through the REST API. As the user needs to login to get the data from Redmine, I need a way to ask the user for his credentials at script installation and save them to the script. Can this be achieved without asking the user to edit the values directly in the script itself? EDIT: Since there is already an answer to this question I will validate the answer given just below as it is a very good framework. 回答1: