Instead of using new tabs to start new downloads, we should use the downloads option for extensions.
This way we can actually implement a Queue to circumvent the limited concurrent downloads on certain hosters. The Callback function can be used to get the next download
Implement a Queue
Instead of using new tabs to start new downloads, we should use the downloads option for extensions. This way we can actually implement a Queue to circumvent the limited concurrent downloads on certain hosters. The Callback function can be used to get the next download
{ "name": "My extension", ... "permissions": [ "downloads" ], ... }
We can use the following method to start our downloads:
chrome.downloads.download(object options, function callback)
options = { url: "http://your.url/to/download", filename: "suggested/filename/with/relative.path" }
https://developer.chrome.com/extensions/downloads#method-download