
See MDN: the contextmenu attribute (on body) is obsolete and will be removed from all browsers.
You'll have to handle the contextmenu event and display your menu explicitly.
Okay, good to know. So I disabled right click menu, and created a popup for now. That works.
The problem now is when using "download(filename, imageURL);" Android Firefox will automatically download the file and not ask to open in another program.
When you look at the download using this method the file is shown as a text file:

But when downloading from an actual link, it is shown as a media file:

I just need to figure out now how to make the Newly created file look like a media file and not a text file.
function download(filename, text) { var element = document.createElement('a'); element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)); element.setAttribute('download', filename);
element.style.display = 'none';
document.body.appendChild(element);
element.click();
document.body.removeChild(element);
}

Open Youtube in VLC player from browser - Greasemonkey
I wanted to attempt to make a Greasemonkey script to open Youtube links in VLC Player. I managed to get one to work with right clicking a link and having a "Open as M3U" option appear at the top of the menu.
I wanted it to work on Android with Firefox and Greasemonkey, but it didn't. Any suggestions for Android?