title: How to download a file via a Chrome Content Script?
body: <p>This <a href="https://stackoverflow.com/a/24162238/1830334">SO answer</a> details how to download a file via a Chrome Extension, but I am using a Content Script, <a href="https://developer.chrome.com/extensions/content_scripts" rel="nofollow noreferrer">which has limited access to Chrome's APIs</a>. In other words, I don't have access to the <code>chrome.downloads</code> object. I also tried this <a href="https://stackoverflow.com/a/3749395/1830334">vanilla JS solution</a>, but it did not work for me. Does anyone have a solution for Content Scripts or know why the second solution doesn't work?</p>