You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tampermonkey offers the nice feature that this "save as" prompt will not be shown and the file directly saved without any questions asked - exactly what I want for my user script.
Since I could not find out how TM does this, I had the idea to set the FF about:config variable "browser.download.useDownloadDir" (this tells FF to download to the folder and don't ask) to true, initiate the download and set it to false again.
Is that possible?
The text was updated successfully, but these errors were encountered:
Since I could not find out how TM does this, I had the idea to set the FF about:config variable "browser.download.useDownloadDir" (this tells FF to download to the folder and don't ask) to true, initiate the download and set it to false again.
Is that possible?
@ganego: No, it is not possible. The about:config variables of Firefox can indeed be changed in a file (Prefs.js file), but those changes are only applied if Firefox isn't running. Otherwise the changes are ignored and resetted after a restart of Firefox.
Since GM does not offer GM_download, I have to use https://gist.github.com/ccloli/832a8350b822f3ff5094 (GM_download_polyfill.js) or https://github.com/eligrey/FileSaver.js/ . Now the problem with that is, that Firefox will show a "save as" prompt because in the FF options it is set that FF should ask for each download (what I normally want).
Tampermonkey offers the nice feature that this "save as" prompt will not be shown and the file directly saved without any questions asked - exactly what I want for my user script.
Since I could not find out how TM does this, I had the idea to set the FF about:config variable "browser.download.useDownloadDir" (this tells FF to download to the folder and don't ask) to true, initiate the download and set it to false again.
Is that possible?
The text was updated successfully, but these errors were encountered: