Trapping downloads within Google Chrome
I’ve looked around and haven’t been able to find anything that will allow me to detect when a download is finished within Chrome.
The reason I want to do this is that I want to better “sort” my downloads once they are downloaded, automatically based on various criteria.
I’ve tried setting up a listener with: webRequest.onCompleted and while that seems to work for most resources (images, .ico, etc), I can’t get it to trap a .ZIP or .EXE file download. I’m not sure why it won’t, but it’ll work for other resources without a problem.
I haven’t set a filter on it so it should (as far as I know) be pulling in all resources and checking them for the specified extensions. I know that might not be the best way to do check, but I haven’t found a better one yet.
Looking at the experimental downloads API, that doesn’t seem to do what I want either as that mostly just initiates a download, which isn’t what I am trying to do.
Thanks for any assistance!
One Solution collect form web for “Trapping downloads within Google Chrome”
Haven’t seen an extension for this, but when you think about it this kind of makes sense. It almost seems like something that should be native to the browser…I guess it does give you the most recent downloads though and that is relevant to your current task. Anyways, thought I would mention that there is an experimental api that allows interaction with the native download interactions. This may be a reference needed in getting the extension cooking. Good luck
Link to Experimental API: