enablelegacy-firefox-addons
enablelegacy-firefox-addons copied to clipboard
Tutorial to re-enable legacy add-ons in Firefox Quantum (Firefox 57+) by making the extensions.legacy.enabled preference functional again (even on non-beta/dev versions of Firefox). Do not use this un...
Enabling legacy add-ons in Firefox Quantum
Legacy Firefox add-ons are not supported any more in Firefox 57. The successor, WebExtensions, are more secure but less powerful. If you want to load a legacy add-on, then the following steps will allow you to do so. Just keep in mind that these add-ons can break at any time when Firefox updates.
Add-ons built using legacy technology are a security and stability risk, because these add-ons run with the full privileges of the browser without any sandboxing. Do not follow these instructions unless you are aware of the consequences.
These steps rely on "autoconfig", a feature to support enterprise deployments of Firefox.
To enable legacy add-ons:
- Copy the
enablelegacy.cfgto Firefox's application directory, andenablelegacy-prefs.jsto thedefaults/pref/subdirectory. If you use Linux, just runsudo make install. - Visit
about:configand set the preferences:
extensions.legacy.enabledtotrue.
- Optionally, to disable automatic updating:
extensions.update.autoUpdateDefaulttofalse.
- Optionally, if you want to disable extension signing, that can be done too:
xpinstall.signatures.requiredtofalse.
- If you want to revert back to the default behavior
(where the legacy and signatures preferences are ignored),
delete the files from step 1 (or run
sudo make uninstall).
If your Firefox directory is not located at /usr/lib/firefox,
use the FIREFOXDIR variable to customize the location.
For example if you extracted a Firefox package to /tmp/firefox57,
use make FIREFOXDIR=/tmp/firefox57/usr/lib/firefox install.
Migrating from Firefox 56 or earlier to Firefox 57 or later
When you are running Firefox 56 with several legacy add-ons, and don't want them to be disabled or updated to a newer WebExtension version, follow the next steps:
- Run
sudo make install(on Linux). (for Windows/macOS, see the first step of the previous section). - Start Firefox (any version) and visit
about:config. - Create and/or set the following preferences:
extensions.legacy.enabledtotrue.extensions.update.autoUpdateDefaulttofalse.
NOTE: If you do not want to be without legacy add-ons during the upgrade, set these preferences before starting the new Firefox version.
- Go to
about:addonsand confirm that the list of add-ons looks fine. - Some add-ons may already be enabled. If a request to restart Firefox appears, then the add-on is either not restartless, or not marked as multiprocess-compatible. In the latter case, restarting Firefox will cause it to start in single-process mode (which has a worse performance).
Legacy add-ons are not supported in Firefox 57 and may break at any time.
Installing / updating legacy add-ons
Do not use the built-in updater to update a legacy add-on, unless you are willing to upgrade to a WebExtension version of the add-on (with potentially different functionality).
To update a legacy add-on (or install a new one) from addons.mozilla.org, you
can either copy the "Download anyway" link below the install button, remove
type:attachment/ from the URL, paste the URL in the location bar and press
Enter.
Another way to get the install button to be clickable (and search results to include legacy add-ons) is to use the built-in devtools to change the user agent:
-
Open the built-in Responsive Design Mode (devtools) (shortcut: Ctrl + Shift + M).
-
Find your user agent string, e.g. by opening the devtools (F12) and copying the result of running
navigator.userAgent. -
Paste the user agent string in the User Agent input box at the top of the Responsive Design Mode tool, change the last number to 56 and click inside the page to refresh. Here is an example of a user agent string that enables installation of legacy add-ons (for Linux):
Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/56.0
-
Now the Install button for legacy add-ons is enabled again on AMO!
To install an unsigned legacy add-on from another location, visit about:config
and set xpinstall.signatures.required to false. Use at your own risk!