For your use case, you can configure Firefox to download PDF and MP4 files automatically rather than displaying them in-browser. Here’s how to set it up, including a solution to centralize this setting across all your Firefox instances.
Solution 1: Firefox Settings
Open Firefox Settings:Go toSettings > General > Applications.
Go toSettings > General > Applications.
Configure PDF Downloading:In theApplicationssection, look for "Portable Document Format (PDF)."Set the action to"Save File"instead of"Open in Firefox".
In theApplicationssection, look for "Portable Document Format (PDF)."
Set the action to"Save File"instead of"Open in Firefox".
Configure MP4 Downloading:In theApplicationssection, look for "MP4 File" (or "Video File" depending on your setup).Set the action to"Save File"instead of"Preview in Firefox"or any other setting.
In theApplicationssection, look for "MP4 File" (or "Video File" depending on your setup).
Set the action to"Save File"instead of"Preview in Firefox"or any other setting.
Open Firefox Settings:
Go toSettings > General > Applications.
Go toSettings > General > Applications.
Configure PDF Downloading:
In theApplicationssection, look for "Portable Document Format (PDF)."
Set the action to"Save File"instead of"Open in Firefox".
In theApplicationssection, look for "Portable Document Format (PDF)."
Set the action to"Save File"instead of"Open in Firefox".
Configure MP4 Downloading:
In theApplicationssection, look for "MP4 File" (or "Video File" depending on your setup).
Set the action to"Save File"instead of"Preview in Firefox"or any other setting.
In theApplicationssection, look for "MP4 File" (or "Video File" depending on your setup).
Set the action to"Save File"instead of"Preview in Firefox"or any other setting.
Solution 2: Centralize Across Firefox Instances
If you want these preferences to be applied consistently across all your Firefox instances (e.g., across multiple devices or profiles), you can deploy a configuration file if you’re managing several profiles.
Use Firefox Sync:EnableFirefox Syncon each of your instances. While it primarily syncs bookmarks, history, and settings, it will also help keep application settings consistent across devices.
EnableFirefox Syncon each of your instances. While it primarily syncs bookmarks, history, and settings, it will also help keep application settings consistent across devices.
Use apolicies.jsonConfiguration File(Advanced):For centralized configuration, you can create apolicies.jsonfile in the Firefox installation directory to enforce these settings.Place this file in the directory:Windows:C:\Program Files\Mozilla Firefox\distribution\Mac:/Applications/Firefox.app/Contents/Resources/distribution/Example ofpolicies.jsoncontent:jsonCopy{
"policies": {
"Handlers": {
"MIME": {
"application/pdf": { "action": "saveToDisk" },
"video/mp4": { "action": "saveToDisk" }
}
}
}
}
For centralized configuration, you can create apolicies.jsonfile in the Firefox installation directory to enforce these settings.
Place this file in the directory:Windows:C:\Program Files\Mozilla Firefox\distribution\Mac:/Applications/Firefox.app/Contents/Resources/distribution/
Windows:C:\Program Files\Mozilla Firefox\distribution\
Mac:/Applications/
Example ofpolicies.jsoncontent:jsonCopy{
"policies": {
"Handlers": {
"MIME": {
"application/pdf": { "action": "saveToDisk" },
"video/mp4": { "action": "saveToDisk" }
}
}
}
}
Use Firefox Sync:
EnableFirefox Syncon each of your instances. While it primarily syncs bookmarks, history, and settings, it will also help keep application settings consistent across devices.
EnableFirefox Syncon each of your instances. While it primarily syncs bookmarks, history, and settings, it will also help keep application settings consistent across devices.
Use apolicies.jsonConfiguration File(Advanced):
For centralized configuration, you can create apolicies.jsonfile in the Firefox installation directory to enforce these settings.
Place this file in the directory:Windows:C:\Program Files\Mozilla Firefox\distribution\Mac:/Applications/Firefox.app/Contents/Resources/distribution/
Windows:C:\Program Files\Mozilla Firefox\distribution\
Mac:/Applications/
Example ofpolicies.jsoncontent:jsonCopy{
"policies": {
"Handlers": {
"MIME": {
"application/pdf": { "action": "saveToDisk" },
"video/mp4": { "action": "saveToDisk" }
}
}
}
}
For centralized configuration, you can create apolicies.jsonfile in the Firefox installation directory to enforce these settings.
Place this file in the directory:
Windows:C:\Program Files\Mozilla Firefox\distribution\
Mac:/Applications/Firefox.app/Contents/Resources/distribution/
Windows:C:\Program Files\Mozilla Firefox\distribution\
Mac:/Applications/
Example ofpolicies.jsoncontent:
────────────────────────────────────────────────────────────────────
jsonCopy{
"policies": {
"Handlers": {
"MIME": {
"application/pdf": { "action": "saveToDisk" },
"video/mp4": { "action": "saveToDisk" }
}
}
}
}
Additional Tips:
If you often work with different profiles, this configuration file will ensure consistency without manually updating each profile. Let me know if you’d like more details on advanced profile configuration or other customizations!