title: Override downloading a file type with Chrome Extensions
body: <p>I'm trying to build a chrome extension that overrides a download of a file and displays it in the browser. For example if you click on a link to a '.csv' file I'd like it to render in the browser instead of downloading it.</p>
  
  <p>Chrome already does it for PDF's types and the <a href="https://chrome.google.com/webstore/detail/gbammbheopgpmaagmckhpjbfgdfkpadb">Xml Tree extension also does exactly that for xml files.</a></p>
  
  <p>So it should be possible, just not sure how to go about catching that event?</p>