Firefox 瀏覽器附加元件
  • 擴充套件
  • 佈景主題
    • 用於 Firefox
    • 字典與語言套件
    • 其他瀏覽器網站
    • Android 版的附加元件
登入
Content-Type Fixer 預覽

Content-Type Fixer 作者: jscher2000

Firefox doesn't follow instructions for downloads? "Always Open Similar Files" is missing? This usually happens because the server sent Firefox a wrong/generic Content-Type header, or forces a download with Content-Disposition. Here's a fix.

4.7 (44 reviews)4.7 (44 reviews)
1,862 Users1,862 Users
必須使用 Firefox 才能使用此擴充套件
下載 Firefox 並安裝擴充套件
下載檔案

擴充套件後設資料

畫面擷圖
The Zzzz button indicates the extension is not listening/fixing responses. Click the button to start listening/fixing. Click again to drop the menu.Main menu provides the ability to turn the extension off, add or edit Content-Type overrides, enable/disable existing overrides, start automatically, or tweak content disposition. (ver 1.7)Click the switch in the left column to change between enabled (extension will change the Content-Type) to disabled.The Zzzz button indicates the extension is not listening/fixing responses. Click the button to start listening/fixing. Click the button again to drop the menu with choices to stop listening, add a custom Content-Type, start automatically, or tweak content disposition. (ver 1.6)
關於此擴充套件
You can find a new help page (for Firefox 98+) here: https://www.jeffersonscher.com/ext/content-type-fixer.html

Operation

This extension does not monitor downloads until you enable it. Use the toolbar button to turn listening on (shows a yellow burst) and off (shows Zzzz). (If you want it on automatically, there is a checkbox on the menu for that.)

Content-Type

The extension checks the file extension on new page and download requests to see whether they have a file extension that should be assigned a specific Content-Type header. (It doesn't look at requests for embedded items like images, audio, or video.)

Automatically corrects the Content-Type for these extensions: .acsm, .css, .csv, .doc/docx, .epub, .pdf, .ppt/pptx, .psd, .rar, .rtf, .xls/xlsx, .zip, and .7z. Some image and video formats can be enabled with a click.

To add more, turn on the extension, try to download a file that isn't being handled correctly, then open the Log of recent requests to find Add and Edit buttons to add a custom Content-Type. The log is not saved to disk and is flushed when you snooze the extension.

Content-Disposition

The extension corrects errors with spaces that cause download file names to cut off. You can optionally force inline disposition, so Firefox follows the rules you've set on the Options/Preferences page without showing the download dialog each time. You also can force attachment disposition to bypass viewing in a tab. I suggest using that option sparingly, only as needed.

Exception Notes

Version 1.7.1+ ignores "Follow my settings (inline)" on Google Drive and for Gmail attachments due to cookie issues. Version 1.7.2+ extends the exception to Google Docs.

Permissions Note

While the extension is listening, it reads the Content-Type and Content-Disposition headers that servers send with files. It may modify the Content-Type and Content-Disposition headers. The extension does not read web pages.

Test Page

Without the extension running, you get bad results for the zip file links and embedded PDF on the following page, and the extension fixes it: https://www.jeffersonscher.com/res/badct/

Hat tip

The code draws from the Display inline extension from samlh: https://addons.mozilla.org/firefox/addon/display-inline/.
由 1 位評論者給出 4.7 分
登入後即可幫此擴充套件評分
目前沒有評分

已儲存星等

5
38
4
3
3
1
2
0
1
2
閱讀全部 44 條評論
權限與資料了解更多

必要權限:

  • 存取您所有網站中的資料
更多資訊
附加元件網址
  • 首頁
  • 技術支援網站
  • 技術支援信箱
版本
1.7.5
大小
54.78 KB
最近更新
4 個月前 (2025年4月22日)
相關分類
  • 下載管理
授權條款
Mozilla Public License 2.0
版本紀錄
  • 瀏覽所有版本
新增至收藏集
檢舉此附加元件
1.7.5 版的發行公告
Added an emergency Content-Disposition fix for Outlook attachment downloads.
jscher2000 製作的更多擴充套件
  • 目前沒有評分

  • 目前沒有評分

  • 目前沒有評分

  • 目前沒有評分

  • 目前沒有評分

  • 目前沒有評分

前往 Mozilla 官網

附加元件

  • 關於
  • Firefox 附加元件部落格
  • 擴充套件工作坊
  • 開發者交流中心
  • 開發者政策
  • 社群部落格
  • 討論區
  • 回報 Bug
  • 評論撰寫指南

瀏覽器

  • Desktop
  • Mobile
  • Enterprise

產品

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • 隱私權
  • Cookie
  • 法律資訊

除另有註明外,本站內容皆採用創用 CC 姓名標示—相同方式分享條款 3.0 或更新版本授權大眾使用。