title: What is the URL of the google chrome new tab page and how to exclude it from manifest.json
body: <p>I am currently building a simple google chrome extension to prank my brother. The Extension simply deletes the old page and replaces it with HTML and CSS copied off of the "You have no internet" page, In essence making the user think they don't have internet when they do. The following is the content script injected into all new pages:</p>
  
  <pre><code>var hed = document.head;
  var bod = document.body;
  document.head.parentElement.removeChild(document.head);
  document.body.parentElement.removeChild(document.body);
  document.write(/*Copy of "no internet" page source here*/);
  </code></pre>
  
  <p>This script works perfectly. The only page i don't want the change to occur on is the google chrome New Tab page. The way to go about normally excluding pages is to specify it in the Extensions manifest.json file under the content scripts. Here was my original manifest.json setup:</p>
  
  <pre><code>{
      "manifest_version": 2,
  
      "name": "No Internet Extention",
      "description": "Make people with this extention think they have no internet",
      "version": "1.0",
  
      "content_scripts": 
      [
          {
            "matches": ["*://*/*"],
            "js": ["bup.js"]
          }
      ],
  
      "permissions": 
      [
          "activeTab",
          "https://ajax.googleapis.com/"
      ]
  }
  </code></pre>
  
  <p>I have currently tried the following set ups in my manifest.json file content_scripts section in order to exclude the Chrome New Tab page to no avail:</p>
  
  <pre><code>"matches": ["http://*/*", "https://*/*"]
  </code></pre>
  
  <p>I assumed this would exclude it because <a href="https://productforums.google.com/forum/#!msg/chrome/o7qE_mjMWp8/bqqeRdMF1HgJ" rel="noreferrer">This page on the google product forms</a> Told me that the URL of the New Tab page is "chrome://newtab", which is not a HTTP: or HTTPS: Protocol.</p>
  
  <p>I also Tried:</p>
  
  <pre><code>"matches": ["*//*/*"]
  "exclude_matches": ["chrome://newtab"]
  
  "matches": ["*//*/*"]
  "exclude_matches": ["chrome://newtab/*"]
  
  "matches": ["*//*/*"]
  "exclude_matches": ["*://newtab/*"]
  
  "matches": ["*//*/*"]
  "exclude_globs": ["chrome://newtab"]
  </code></pre>
  
  <p>None of these have worked and the content script still executes on the new tab page. I believe the root of the problem here is that my New Tab URL is incorrect. My research for excluding pages was done here:  <a href="https://developer.chrome.com/extensions/content_scripts" rel="noreferrer">Google Content Scripts Page</a>. The real question is: Does anyone know the proper URL for the google new tab page or how to go about excluding it in a manifest file? </p>