title: Monitor visited URLs in Chrome extension?
body: <p>I'm trying to make a Chrome extension as privacy-friendly as possible.</p>
  
  <p>I'm getting the permissions message that the extension can read and change all data on any website.  I actually don't need to be able to read or change any content on any website.</p>
  
  <p>Here's my background script:</p>
  
  <pre><code>chrome.webRequest.onCompleted.addListener((details) =&gt; {
      if(details.type == "main_frame"){
          newext(details.url);
      }
  },{urls: ["http://*/*","https://*/*"]},["responseHeaders"]);
  
  function newext(url){
      /// CODE THAT USES THE URL
  }
  </code></pre>
  
  <p>Here's my <code>manifest.json</code> file:</p>
  
  <pre><code>{
      "name": "NewExt",
      "version": "1.0",
      "manifest_version": 2,
      "background": { "scripts": ["background.js"]},
      "permissions": ["webRequest", "activeTab", "http://*/*", "https://*/*", "storage", "unlimitedStorage"]
  }
  </code></pre>
  
  <p>I'm guessing this is what's causing that message:</p>
  
  <pre><code>chrome.webRequest.onCompleted.addListener
  </code></pre>
  
  <p>Is there an alternative to <code>webRequest</code> that I can use to monitor what URLs a person visits that won't cause that permissions message to show?</p>