Tampermonkey / tampermonkey

Tampermonkey is the most popular userscript manager, with over 10 million users. It's available for Chrome, Microsoft Edge, Safari, Opera Next, and Firefox.
GNU General Public License v3.0
4.15k stars 415 forks source link

Setting {accessKey : "+"} to GM_registerMenuCommand hides all scripts from the popup menu #2113

Open Sibsen1 opened 2 months ago

Sibsen1 commented 2 months ago

Expected Behavior

Scripts should be visible in the popup menu.

Actual Behavior

All scripts are hidden in the menu. Only the number of scripts is still visible on the button.

Specifications

Script

(Please give an example of the script if applicable.)

// ==UserScript==
// @name         Test
// @include       *://*
// @grant        GM_registerMenuCommand
// ==/UserScript==

(function() {
    'use strict';

    GM_registerMenuCommand("foo", () => {}, {accessKey: "+"});
})();
derjanb commented 2 months ago

Good catch!

derjanb commented 2 months ago

Thanks for reporting. Should be at 5.3.6203 (crx)

Please download the crx file linked above and drag and drop it to the extensions page chrome://extensions (after you've enabled 'Developer Mode').