I wrote a simple Firefox plugin some time back that allows me to r-click a hyperlink and select a new entry in the context menu, the result of which is to send a POST containing the link to another device on my network, which extracts the link and does some work based on what it is.
I tried to add this add-on to PM thinking that it wouldn't be a problem since it's such a simple plugin, but I get the error message, "Pale Moon does not support webextensions."
I'm a coder, but I'm not really hip on web dev, and I don't even really remember what references I used to write this add-on. Basically I want to make this thing PM compatible. It's really just a very short script wrapped in a plugin:
Code: Select all
function SendLink(link) {
var oReq = new XMLHttpRequest();
oReq.open("POST", "http://192.168.1.123:4321");
var blob = new Blob([link], {type: 'text/plain'});
oReq.send(blob);
}
browser.menus.create({
id: "sendToTrio",
title: "Send to Trio",
contexts: ["link"]
});
browser.menus.onClicked.addListener((info, tab) => {
if(info.menuItemId == "sendToTrio") {
SendLink(info.linkUrl);
}
});
Thank you in advance for any help or advice.