Edge user-agent extension files

Look up the files that make up the recorded Edge user-agent extension and find its source repository.

The extension (aside from icons) is made up of four components:

  1. manifest.json
  2. Declares the extension name, version, permissions etc. for the extension
  3. background.js
  4. Service worker that is the actual code monitoring the sites for matching destinations and does the actions to replace the UA
  5. popup.js and popup.html
  6. 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.
  7. domains.json
  8. 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