Skip to content

@grant GM.addValueChangeListener is not recognized #2090

@Sv443

Description

@Sv443

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSomething we do have implemented already but needs improvement upon to the best of knowledge.userscript engine issueSurprise it's a .user.js engine issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions