GreaseMonkey + Ajax + Remember page?
I load jquery into 开发者_如何学运维my greasemonkey script and when the user clicks the start button the script makes a bunch of ajax calls. I then empty body and append data. When i click on something and hit back instead of getting the page post script i lose all the data and need to run the ajax calls again (it can take seconds to run). How do i make it not lose the changes?
Will GM_setValue do the trick?
Using GM_setValue("valuename",value) to save some data and GM_getValue('valuename') to get that data should achieve what you want.
精彩评论