Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot download files too quickly #2307

Open
martixy opened this issue Dec 19, 2024 · 0 comments
Open

Cannot download files too quickly #2307

martixy opened this issue Dec 19, 2024 · 0 comments

Comments

@martixy
Copy link

martixy commented Dec 19, 2024

Expected Behavior

Get all the downloads you ask for.

Actual Behavior

Get only some of them.

Specifications

  • Chrome 131.0.6778.140
  • TM: 5.3.3
  • OS: Win10

Details

I have a few scripts that download multiple files.
It used to work before. Now it will stop giving me downloads after a bit.
I can introduce a delay, and that seems to work as a workaround.

The problem is all the promises return fulfilled. (E.g. call GM.download x times, get x fulfilled promises.)
But when the browser starts fucking LYING to me, I don't know what to do at that point.

Script

// ==UserScript==
// @name         Download Test
// @namespace    martixy
// @version      2024-12-19
// @description  try to take over the world!
// @author       martixy
// @match        https://www.google.com
// @grant        GM_download
// ==/UserScript==


for (let i = 0; i < 30; i++) {
    GM.download('https://www.google.com/images/branding/googlelogo/2x/googlelogo_light_color_272x92dp.png', 'g.png')
    .then(() => {
        console.log(i)
    })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant