title: Chrome extension to redirect user on specific urls
body: <p>I want to build a chrome extension which essentially checks if the current domain is in a list, if so redirect the user to a different url, lets him click a link and than goes to the initially wanted url.</p>
  
  <p>I don't have much experience with Javascript or chrome extensions, but this seems easy enough for a starters project.</p>
  
  <p>What I want to to is to have a file of this structure</p>
  
  <pre><code>urlregex1#redirecttourl1
  urlregex2#redirecttourl2
  .
  .
  .
  </code></pre>
  
  <p>and have a chrome content_script parse every url and check if one of the regular expressions matches.</p>
  
  <p>If so the script has to somehow save the original url and than redirect the user.</p>
  
  <p>Can anyone put me in the right direction on how to implement this? I'm totally lost between javascript functions, chrome extension api,....</p>