How to revert Firefox 91+ from saving temporary files to the Downloads folder

Firefox 91 changed the downloads behaviour by setting the download action for all file types to save regardless of the previously set option. Additionally, it also changed the functionality to use the default Downloads folder even for temporary downloads.