title: google chrome extension for manipulating browsing history
body: <p>I'm thinking of developing a Google Chrome extension for the first time; no previous experience. The extension I have in mind must be able to look at a user's browsing history and provide the URL of the earliest instance they visited a certain website, or any subdirectory within that website.</p>
  
  <p>For example, a user's browsing history could be:</p>
  
  <pre><code>8:58 - http://mysite.com/page/page1.html
  8:59 - http://mysite.com/test/index.php
  9:00 - http://google.com
  9:01 - http://google.com/?q=mysite
  9:03 - http://mysite.com/this/info.html
  9:04 - http://mysite.com/this/info2.html
  9:05 - http://mysite.com/this/info3.html
  9:06 - http://facebook.com
  </code></pre>
  
  <p>In this case, let's say the app is looking for instances of visiting <a href="http://mysite.com" rel="noreferrer">http://mysite.com</a> or any subdirectory. (This would be specified in the extension code itself; it's not set by the user.) The extension will look for the most recent "group" of visits to <a href="http://mysite.com" rel="noreferrer">http://mysite.com</a>, which is in this case: </p>
  
  <pre><code>9:03 - http://mysite.com/this/info.html
  9:04 - http://mysite.com/this/info2.html
  9:05 - http://mysite.com/this/info3.html
  </code></pre>
  
  <p>From this group, it will pick the earliest of the entries, and display that URL, which in this case is:</p>
  
  <pre><code>9:03 - http://mysite.com/this/info.html
  </code></pre>
  
  <p>Been looking at Google's documentation on working with History in extensions (http://developer.chrome.com/extensions/history.html), but I don't think what I'm looking for is on that documentation page...</p>
  
  <p>Wondering if anyone could give me a push in the right direction?</p>
  
  <p>Thanks!</p>