title: How to capture the URL of the 'about to' download file on a browser
body: <p>I want to write a piece of code that triggers an event when a file is getting downloaded.
  Lets say its a chrome extension.</p>
  
  <p>Like a Download Manager intercepts the browser download process, captures the file URL and downloads it. I want to capture the URL of the files getting downloaded and avoid the browser download process.</p>
  
  <p>Thanks for taking a look !</p>