title: Enabling Devtools extension for pages from a particular domain?
body: <p>I want to add new tabs/panel to Dev Tools i.e a devtool extension. But want to add only when the main page/inspected window opened is of specific domain. Any way I can achieve this?</p>
  
  <p>Right now the following adds tab in Dev Tools for every page I visit. The <code>"permissions"</code> part of the manifest.json is not honored?</p>
  
  <p>Would like to know if I can limit the devtool extension to limited pages, or if I create a devtool extension it's going to be available for all pages?</p>
  
  <p><strong>manifest.json</strong></p>
  
  <pre><code>{
    "manifest_version": 2,
  
    "name": "Devtools extension",
    "description": "XYZ",
    "version": "1.0",
  
    "permissions": [
      "https://*.google.com/"
    ],
    "browser_action": {
      "default_icon": "vf.jpg",
      "default_title": "rc"
    },
    "background": {
      "scripts": ["background.js"]
    },    
    "devtools_page" : "devtools.html"
  }`
  </code></pre>
  
  <p><strong>devtools.js included in devtools.html</strong></p>
  
  <pre><code>chrome.devtools.panels.create(
      "New Tab", 
      "icon.png", 
      "dummy.html",
      function() {
        console.log("tab added");
      }
  );
  </code></pre>