title: Chrome Extension - pass parameter to new tab
body: <p>I would like to create a chrome extension that open my website on homepage / new tab. I used the HTML tag <code>&lt;meta http-equiv..</code> to redirect the user to my website and it working great.</p>
  
  <p>The problem is that I want to pass parameter (create unique ID for each user) and to attach this parameter to my website URL:</p>
  
  <p>for example: <a href="http://www.mywebsite.com/" rel="nofollow">http://www.mywebsite.com/</a>?<strong>user_id=parameter_value_here</strong></p>
  
  <ol>
  <li><p>where I should create my user id? </p></li>
  <li><p>how I pass it to the new tab html file?</p></li>
  </ol>
  
  <p>My extension code:</p>
  
  <p><strong>newTab.html</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="refresh" content="0; url=http://www.mywebsite.com/?user_id=value_here" /&gt;
      &lt;/head&gt;
      &lt;body style="display: none;"&gt;
  
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>Manifest</strong></p>
  
  <pre><code>{
    "name": "My website name",
    "version": "1.1",
    "description": "website description goes here",
    "chrome_url_overrides" : {
      "newtab": "newTab.html"
    },
    "permissions": [
      "topSites",
      "chrome://favicon/"
    ],
    "manifest_version": 2,
    "permissions":[
      "http://*/*", 
      "https://*/*", 
      "management", 
      "storage", 
      "tabs", 
      "webRequest", 
      "webRequestBlocking", 
      "cookies", 
      "bookmarks"
  ]
  }
  </code></pre>