Hello I am trying to make a context menu whenever a link to a torrent file has been right clicked. I am trying to create a context menu like this:
var id = chrome.contextMenus.create({"title": "Send to seedbox", "contexts":["link"],
"onclick": onTorrentClicked, "documentUrlPatterns":["*://*/*.torrent"]});
So the pattern in question is "*://*/*.torrent" It seems like if I have anything but * for the path the pattern always fails.
Any ideas?
Instead of setting
documentUrlPatternsyou should settargetUrlPatterns.