1

I am creating edge browser extension. Basically I want to disable the other installed extension, I have a code which is working on chrome extension:

chrome.management.getAll(function (extensionInfo) {
    idExtensionEnabled = [];
    for (let i in extensionInfo) {
        if (extensionInfo[i].enabled && extensionInfo[i].name !== "xxxxx") { 
            idExtensionEnabled.push(extensionInfo[i].id);
            chrome.management.setEnabled(extensionInfo[i].id, false);
        }
    }
});

I want to make it compatible to edge

then I have searched for edge: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/windows/getAll

But this is not working.

Your help is very appreciated, thank you

dev
  • 49
  • 1
  • 6
  • According to your link, Edge only has partial support. Also, please define what "not working" means... – Lee Taylor Jul 22 '19 at 12:34
  • later this year edge will release with webkit as basis and will also support all chrome extensions. so it won't work right now but in the near future. – cloned Jul 22 '19 at 12:35
  • Thanks @LeeTaylor This is my chrome code, which is working chrome.management.getAll(function (extensionInfo) { // console.log(extensionInfo); idExtensionEnabled = []; for (let i in extensionInfo) { if (extensionInfo[i].enabled && extensionInfo[i].name !== "xxxxx") { idExtensionEnabled.push(extensionInfo[i].id); chrome.management.setEnabled(extensionInfo[i].id, false); } } }); I want to make it compatible to edge. – dev Jul 22 '19 at 12:48
  • @dev Please edit your question and make your changes there... – Lee Taylor Jul 22 '19 at 12:50
  • Okay thanks @cloned – dev Jul 22 '19 at 13:09

1 Answers1

0

From the Microsoft Edge Extension support API document, we can see that it doesn't support the function to manage the Microsoft Edge Extension.

And the management API is under consideration, more detail information, you could check the Microsoft Edge extension API roadmap.

Zhi Lv
  • 18,845
  • 1
  • 19
  • 30