Go to about:profiles and find root directory of your firefox profile.
Add the following in user.js in the root directory with the following:
Code: Select all
user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "http://localhost:8080");
user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
Next use https://github.com/einaregilsson/Redirector and make the configuration
include pattern: ^https?:\/\/localhost:8080\/([^?\/][^?]*)$
Redirect to: file://$1
This will redirect every link that isn't /?search=something to its file url.