Connector feature request: Temporarily take over download tasks in browser

Sometimes the download button on a webpage does not contain any URL pointing to attachment, but is bound to the website's own JavaScript.

We can now get the Element of this button in the translator and execute .click() to download the attachment, but the attachment cannot be saved together with the item in Zotero. I have installed some downloaders that can take over browser download tasks through browser extensions. I hope that in the future, the connector can also do similar things.
  • We can now get the Element of this button in the translator and execute .click() to download the attachment
    No, that's not something you should do or rely on — translators aren't meant to have access to the page environment itself, and things like this won't work in all environments where Zotero translators can run now or in upcoming browser versions that run translators in a separate sandbox.

    In almost all cases, if the page itself can trigger the download, the translator can use the same data the page has to figure out what the resulting download URL will be. Maybe the sites you're trying to save from make this difficult, but it's almost always possible.
Sign In or Register to comment.