diff options
Diffstat (limited to 'commandBookmarklet.js')
-rw-r--r-- | commandBookmarklet.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/commandBookmarklet.js b/commandBookmarklet.js index 3375dce..811691c 100644 --- a/commandBookmarklet.js +++ b/commandBookmarklet.js @@ -75,8 +75,11 @@ if (!items.length) { } items.forEach(function (item) { + let name = toValidCommandName(item.title); + if (commands.get(name)) + return; commands.addUserCommand( - [toValidCommandName(item.title)], + [name], 'bookmarklet : ' + item.title, function () evalScript(item.url), { shortHelp: 'Bookmarklet' }, |