What happened?
I tried uploading an updated version of my userscript which now has the @grant GM.addValueChangeListener, used throughout the code via GM.addValueChangeListener(), but the website errored with code 400 and wouldn't let me upload it until I changed the metadata grant line to GM_addValueChangeListener.
The metadata block now looks like this:
// @grant GM.getValue
// @grant GM.setValue
// @grant GM.deleteValue
// @grant GM.listValues
// @grant GM_addValueChangeListener
// @grant GM.getResourceUrl
// @grant GM.setClipboard
// @grant GM.xmlHttpRequest
// @grant GM.openInTab
// @grant GM.registerMenuCommand
// @grant unsafeWindow
What did you expect to happen?
Since this doesn't happen with any of the other grants I have set, I expect the behavior to be consistent.
What the problem might be?
When validating userscript metadata.
What happened?
I tried uploading an updated version of my userscript which now has the
@grant GM.addValueChangeListener, used throughout the code viaGM.addValueChangeListener(), but the website errored with code 400 and wouldn't let me upload it until I changed the metadata grant line toGM_addValueChangeListener.The metadata block now looks like this:
What did you expect to happen?
Since this doesn't happen with any of the other grants I have set, I expect the behavior to be consistent.
What the problem might be?
When validating userscript metadata.