Skip to content

[BUG] GM_registerMenuCommand 的 listener callback 不相容 TM 4.14+ - callback 应传入 event argument #1443

@cyfung1031

Description

@cyfung1031

Problem Description

https://www.tampermonkey.net/documentation.php?locale=en&q=GM_registerMenuCommand

  • callback - function, A function to be called when the menu item is selected. The function will be passed a single parameter, which is the currently active tab. As of Tampermonkey 4.14 a MouseEvent or KeyboardEvent is passed as function argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions