Skip to content

Instantly share code, notes, and snippets.

@kzar
Last active January 15, 2019 12:48
Show Gist options
  • Save kzar/56e211fc7096f07cd75ac4f2f960f6ed to your computer and use it in GitHub Desktop.
Save kzar/56e211fc7096f07cd75ac4f2f960f6ed to your computer and use it in GitHub Desktop.
Edge showOptions debugging
// First these two lines
let manifest = browser.runtime.getManifest();
browser.extension.getURL(manifest.options_page || manifest.options_ui.page);
// Then this one
browser.tabs.query({}, tabs => { console.log(JSON.stringify(tabs)); })
// Then this
browser.runtime.openOptionsPage
@kzar
Copy link
Author

kzar commented Jan 15, 2019

ms-browser-extension://EdgeExtension_EyeoGmbHAdblockPlusdevelopmentbuild_d55gg7py3s0m0/options.html

[
  {
    "id": 502,
    "index": 0,
    "windowId": 1,
    "active": false,
    "status": "complete",
    "incognito": false,
    "pinned": false,
    "title": "ABP Test Pages",
    "url": "https://testpages.adblockplus.org/",
    "favIconUrl": "https://testpages.adblockplus.org/images/abp-32.png?3926434808"
  },
  {
    "id": 523,
    "index": 1,
    "windowId": 1,
    "active": false,
    "status": "complete",
    "incognito": false,
    "pinned": false,
    "title": "Settings",
    "url": "ms-browser-extension://EdgeExtension_EyeoGmbHAdblockPlusdevelopmentbuild_d55gg7py3s0m0/options.html"
  },
  {
    "id": 524,
    "index": 2,
    "windowId": 1,
    "active": true,
    "status": "complete",
    "incognito": false,
    "pinned": false,
    "title": "Settings",
    "url": "ms-browser-extension://EdgeExtension_EyeoGmbHAdblockPlusdevelopmentbuild_d55gg7py3s0m0/options.html"
  }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment