You can use flash/flashgot api in external application or userscripts.
Documentation:
Code:
localhost:9666/help
Tampermonkey demo script which adds 'Send to JDownloader" menu item to the browser context menu, which can be used to send embeded links from a matching web page, to JD.
Code:
// ==UserScript==
// @name Send to JDownloader
// @author mgpai
// @match *//interactive-examples.mdn.mozilla.net/pages/tabbed/embed.html
// @run-at context-menu
// ==/UserScript==
var links = Array.apply(null, document.embeds).map(function(embed) {
return embed.src
});
window.open(encodeURI("**External links are only visible to Support Staff**+links.join("<br>")));