Questions tagged [microsoft-edge-extension]

Extension development for Microsoft Edge browser.

This tag is dedicated to questions about extension development for the Microsoft Edge web browser.

Starting with build 14291 for the Windows 10 Insider Preview, a selection of extension is now available for Microsoft Edge. When fully released to mainstream builds of Windows 10, extensions will be available via the Windows Store.

The Microsoft Edge extension API is documented here.

Accessibility: https://learn.microsoft.com/en-us/microsoft-edge/accessibility

Adding and removing extensions for preview builds of Microsoft Edge: https://learn.microsoft.com/en-us/microsoft-edge/extensions/guides/adding-and-removing-extensions

Debugging extensions: https://learn.microsoft.com/en-us/microsoft-edge/extensions/guides/debugging-extensions

Microsoft Edge extension API roadmap: https://learn.microsoft.com/en-us/microsoft-edge/extensions/api-support/extension-api-roadmap

Internationalization: https://learn.microsoft.com/en-us/microsoft-edge/extensions/guides/internationalization

Microsoft browser extension policy: https://learn.microsoft.com/en-us/microsoft-edge/extensions/microsoft-browser-extension-policy

Supported APIs: https://learn.microsoft.com/en-us/microsoft-edge/extensions/api-support/supported-apis

Supported manifest keys: https://learn.microsoft.com/en-us/microsoft-edge/extensions/api-support/supported-manifest-keys

Troubleshooting: https://learn.microsoft.com/en-us/microsoft-edge/extensions/troubleshooting

Package: https://learn.microsoft.com/en-us/microsoft-edge/extensions/guides/packaging

252 questions
2
votes
0 answers

Unable to get property 'onMessage' of undefined or null reference in Edge extension content script

I'm converting an Chrome extension which works well to Edge extension, and I need to have message listener in my content script. Here is the code in my content script: browser.runtime.onMessage.addListener(listener); function listener(message) { …
kecman
  • 813
  • 3
  • 14
  • 34
2
votes
2 answers

Microsoft Edge Extension Toolbar Action Button Icon not visible

I have used the "Microsoft Edge Extension Toolkit" (https://www.microsoft.com/en-us/store/p/microsoft-edge-extension-toolkit/9nblggh4txvb) to convert the chrome extension code to be compatible with MS Edge browser. Enabled the "Developer Settings"…
2
votes
1 answer

Error 0x2efd in Edge Extension HTTP Request

I'm attempting to port a Chrome extension to Edge. The Chrome extension works fine, and all HTTP requests are working as expected. When these same requests fire in the port, I get this error: XMLHttpRequest: Network Error 0x2efd, Could not complete…
2
votes
1 answer

Microsoft Edge Extension, how to manipulate popup.html DOM

I'm new on Browser Extension dev. I'm trying to do some easy stuff, but I don't really know why doens't work. What is the problem? I can't manipulate DOM of my popup.html file. Here an example:
Robert
  • 33
  • 3
2
votes
2 answers

Microsoft Edge popup extension how to get backgroundpage?

I am trying to use my Chrome extension on Microsoft Edge to adapt it, but I can't build the popup because in the script of my popup, some variables seem to not exist: var bg = chrome.extension.getBackgroundPage(); This line isn't working, it…
2
votes
3 answers

How to port a Chrome extension to another Web Browsers

I wanted to know the best way to bring a Chrome extension on another browser, use Crossbrowser , re-coding is not an option as its very large.
1
vote
1 answer

How can I spoof the search in new tab as mobile (Edge Extension)? Javascript

I am not so good at JavaScript, but I wanted to try making the extension for Microsoft Edge where it'll randomly search in bing. The desktop search is working for now, but Mobile search isn't able to spoof the search as mobile device. How can I…
RoN
  • 13
  • 2
1
vote
3 answers

chrome.alarms is "racing" to catch up if system time changed

I'm using chrome.alarm to display countdown on extension icon, which updates every second'ish. The problem I'm facing is if I change system's time forward (manually or if computer woke up from sleep), the counter starts racing, updating several…
1
vote
0 answers

get badge Text returns blank

I'm trying to get the badgeText of the current Tab to display that in the popup.html. But when I use chrome.browserAction.getBadgeText, i'm getting a blank value as the result even when I can see the badge text on the icon. I'm using Manifest…
1
vote
1 answer

Where is the location of Microsoft Edge Extension Folder that are installed on MacOS?

I am trying to locate the folder that contains the installed extensions for Microsoft Edge macOS but do not know where the folder is. I have extension developer mode enabled so I can see the extension ID plus it also allows me to pack extensions.…
zucc0nit
  • 346
  • 3
  • 14
1
vote
1 answer

I have validated the extension‘s json file. But the icon is not showing up in edge. How do I fix that?

My previous question. The answer quite helped, but I am still having trouble with the icon. It shows up as an common puzzle icon in edge, but I need it‘s icon to change. It looks like: I have validated it with this, but it shows as "valid". till…
1
vote
0 answers

navigator.clipboard.writeText() fails within an unpacked Edge or Chrome extension

My goal is to make an extension for myself(and hopefully others) that adds a more left-handed user friendly copy link address keybind(Y or A) for Microsoft Edge. But as stated navigator.clipboard.writeText() fails without any meaningful indicator to…
1
vote
2 answers

Adding "Activate the extension" shortcut to Chrome Extension

I am developing a Chrome Extension for personal use and want to add a shortcut to it to activate to popup.html page (i.e. when I press the shortcut the popup.html page will show up). For some extension I can easily do this by going to…
th1rdey3
  • 4,176
  • 7
  • 30
  • 66
1
vote
0 answers

Unpacked extension not loaded on browser startup

For some reason my unpacked extension stopped being loaded when browser starts, I have to manually open extensions tabs and load unpacked extension. If I rename extension's folder, Edge assigns a new ID to it and than it automatically gets loaded on…
vanowm
  • 9,466
  • 2
  • 21
  • 37
1
vote
2 answers

How to add a new locale to a Edge browser extension?

My extension includes 29 locales. They are seen as such on Chrome and Firefox. However, on Edge, even if those 29 locales are detected in the package file, only 1 language (en_US) is displayed in the developer dashboard and on the store to the…