Mozilla VPN is currently experiencing an outage. Our team is actively working to resolve the issue. Please check the status page for real-time updates. Thank you for your patience.

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How to prevent common media files from opening directly in the browser so they can be downloaded instead?

  • 4 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 Guido042

more options

Is there a way to have an option to download common media files directly to the computer so the can be used with other programs, instead of opening them directly in the browser window?

For instance if I have a video link "http...something.../myvideo.mp4" and I click on it the video opens directly on the browser window without letting giving me an option do download it instead. I know that the "typical" way to do this is to right click and choose "Save Link As..." but sometimes this is not feasible or an actual link to click is not directly available.

I know that for PDF files there's a way to fix this in the Firefox options by choosing to download or ask instead but for files such as .mp3, .mpg, .avi, etc. I don't know how this can be done.

More and more websites / store fronts such as humblebundle.com or gog.com that offer direct links to media files for download and although normally it's easy to right click on a link to use the option "Save Link As..." sometimes a link is not directly available, or the link may be copied or sent to the browser from a different program.

There are of course workarounds to prevent these file types from opening directly in the browser window but I wish there was a less crude way of achieving this or that an external "Download Manager" wasn't necessary to get regular download links anymore.

Is there a way to have an option to download common media files directly to the computer so the can be used with other programs, instead of opening them directly in the browser window? For instance if I have a video link "http...something.../myvideo.mp4" and I click on it the video opens directly on the browser window without letting giving me an option do download it instead. I know that the "typical" way to do this is to right click and choose "Save Link As..." but sometimes this is not feasible or an actual link to click is not directly available. I know that for PDF files there's a way to fix this in the Firefox options by choosing to download or ask instead but for files such as .mp3, .mpg, .avi, etc. I don't know how this can be done. More and more websites / store fronts such as humblebundle.com or gog.com that offer direct links to media files for download and although normally it's easy to right click on a link to use the option "Save Link As..." sometimes a link is not directly available, or the link may be copied or sent to the browser from a different program. There are of course workarounds to prevent these file types from opening directly in the browser window but I wish there was a less crude way of achieving this or that an external "Download Manager" wasn't necessary to get regular download links anymore.

被采纳的解决方案

You could consider disabling the stand-alone player so that Firefox doesn't open MP3 and similar media files in their own tab. This doesn't affect "in-page" players.

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste ALONE and pause while the list is filtered

(3) Double-click the media.play-stand-alone preference to switch the value from true to false

Does that work on yours?

定位到答案原位置 👍 1

所有回复 (4)

more options

Go to the Mozilla Add-ons Web Page {web Link} (There’s a lot of good stuff here) and search for a download manager.

Some managers work separate from the browser.

more options

FredMcD said

Go to the Mozilla Add-ons Web Page {web Link} (There’s a lot of good stuff here) and search for a download manager. Some managers work separate from the browser.

That is exactly what I am trying to avoid.

I found another work-around so so far I know 2 simple ways to prevent media files from opening in a browser window.

1. Insted of Left Click just Right Click on a link to select Save Link as. 2. Directly dragging the link to the Downloads button in the toolbar (people who try this might want to disable the auto hide in this button though).

These also work if someone wants to save .txt files quickly.

I wish there was an actual option to directly get a Save As dialog when clicking on media file links but these will do for now.

more options

选择的解决方案

You could consider disabling the stand-alone player so that Firefox doesn't open MP3 and similar media files in their own tab. This doesn't affect "in-page" players.

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste ALONE and pause while the list is filtered

(3) Double-click the media.play-stand-alone preference to switch the value from true to false

Does that work on yours?

more options

jscher2000 said

You could consider disabling the stand-alone player so that Firefox doesn't open MP3 and similar media files in their own tab. This doesn't affect "in-page" players. (1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk. (2) In the search box above the list, type or paste ALONE and pause while the list is filtered (3) Double-click the media.play-stand-alone preference to switch the value from true to false Does that work on yours?

Yes! This is exactly what I was looking for. This saves time and will prevent headaches when using certain websites, especially on a slow Laptop.

Thank you for the help.