ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > Living Room

Set Firefox about:config settings from the command line. How?

(1/1)

daddydave:
Is there a way to merge a set of Firefox about:config settings into an existing prefs.js file from the command line, if you want to automate the process? Like with the Windows Registry, you can share a .reg file, is there a filetype like that for the Firefox "registry", or something fairly simple like that?

I've figured out how to make keyboard shortcuts for the DownThemAll add-in (surprisingly they are not built in) using the keyconfig extension and want to make them as easy to share as possible. What do you suggest?

lanux128:
about:config settings are saved into prefs.js, you can save the relevant info as user.js and use it to customize your Firefox settings. though, in your case, keyconfig extension must be in the prefs.js since the add-on doesn't recognize user.js.

daddydave:
Thanks lanux128, I'll think about that.

Here are the raw settings if anyone is interested (requires keyconfig):


--- Code: Javascript ---user_pref("keyconfig.main.xxx_key__DownThemAll! (All tabs)", "alt control][A][][DTA_ContextOverlay.findLinks(false,true)][");user_pref("keyconfig.main.xxx_key__DownThemAll! Manager", "alt control][J][][DTA_AddingFunctions.openManager()][");user_pref("keyconfig.main.xxx_key__DownThemAll!", "alt control][D][][DTA_ContextOverlay.findLinks(false,false)][");user_pref("keyconfig.main.xxx_key__dTa OneClick! (All tabs)", "alt control shift][A][][DTA_ContextOverlay.findLinks(true,true)][");user_pref("keyconfig.main.xxx_key__dTa OneClick!", "alt control shift][D][][DTA_ContextOverlay.findLinks(true,false)][");
I used the functions for keyconfig (another add-on) to create them, which provides a nice GUI.

Also any feedback on whether these shortcuts seem fairly sensible and conflict-free for most Firefox users is welcome.

DownThemAll! (All tabs) = Ctrl-Alt-A
DownThemAll! Manager = Ctrl-Alt-J
DownThemAll! = Ctrl-Alt-D
dTa OneClick! (All tabs) =  Ctrl-Alt-Shift-A
dTa OneClick! = Ctrl-Alt-Shift-D

The logic behind Ctrl-Alt-J is that it is similar to the builtin Ctrl-J (Tools > Downloads)
And the All Tabs shortcuts are intended to be reminiscent of Ctrl-A (select all) although I don't know if that exists on all platforms.

lanux128:
nice, i'm sure it'll come in handy for DTA fans. :up:

Navigation

[0] Message Index

Go to full version