Alt: v24.03.19 - 19.03.2024 -
Neu: v24.03.20 - 19.03.2024 - Add monkey menu items using GM.registerMenuCommand
- @@ -11,7 +11,8 @@
- // @description Find and display links inside a bar; Type of links: chat, contact, email, geo, magnet, media documents, metalinks, podcasts, syndication feeds, torrents and userscripts and wallets.
- // @match file:///*
- // @match *://*/*
-// @version 24.03.19
- +// @version 24.03.20
- +// @grant GM.registerMenuCommand
- // @run-at document-end
- // @noframes
- // @icon data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48dGV4dCB5PSIuOWVtIiBmb250LXNpemU9IjkwIj7wn6WLPC90ZXh0Pjwvc3ZnPg==
- @@ -557,6 +558,7 @@
-
- if (accept && result) {
- links.push(createLink(result, name, info, warn, objectKeys[i]));
- + GM.registerMenuCommand(name, () => openUrl(result));
- }
- }
-
- @@ -580,6 +582,11 @@
-
- })();
-
- +function openUrl(url) {
- + //window.open(url, '_blank');
- + window.open(url, '_self');
- +}
- +
- function buildBar(links) {
- let barElement = document.createElement(namespace);
- barElement.id = namespace + '-bar';