Edge user-agent extension files
In
Look up the files that make up the recorded Edge user-agent extension and find its source repository.
Source-derived reference
These notes were recovered from OneNote. Configuration, permissions and operating results have not been freshly verified. Confirm the applicable authority and environment before acting.
The extension (aside from icons) is made up of four components:
- manifest.json
- Declares the extension name, version, permissions etc. for the extension
- background.js
- Service worker that is the actual code monitoring the sites for matching destinations and does the actions to replace the UA
- popup.js and popup.html
- Code to present the extension interface, display the number of destinations currently managed, and manually refresh the list. Also displays the user-agent that will be presented to a matching destination.
- domains.json
- The list of destinations. Must be uploaded to a specified azure location.
Updating the code
The code is available at https://github.com/ccmitmanager/ua-switcher