Can you stop the add bookmarks dialogue remembering the last selected folder?
Just that really. I want new bookmarks to go into the "Other Bookmarks" folder by default, unless if I manually select a different folder.
And if I did select a different folder last time, I do not want this selection to be remembered the next time I add a bookmark. I want it to go back to having Other Bookmarks pre-selected.
Is this possible? Thanks.
TechHorse tarafından
Tüm Yanıtlar (3)
I think that this would require to use an autoconfig.cfg file to lock the browser.bookmarks.defaultLocation pref that stores the last used folder.
// lockPref("browser.bookmarks.defaultLocation","unfiled");
You can use the autoconfig.cfg file in the Firefox installation folder to initialize (set/lock) preferences and run privileged JavaScript code.
To use Autoconfig, place two files into the Firefox directory.
- on Windows, they go into the same directory where Firefox is installed
- on macOS, they go into the Contents/Resources directory of the Firefox.app
The autoconfig.js file that specifies to use autoconfig.cfg is placed into the "defaults\pref" directory where the channel-prefs.js file is located.
// pref("general.config.filename", "autoconfig.cfg"); pref("general.config.obscure_value", 0);
The autoconfig.cfg file is placed at the top level of the Firefox installation directory.
- autoconfig.cfg and autoconfig.js need to start with a comment line (//)
- autoconfig.js needs to use Unix line endings (LF instead of CR/LF)
If you don't mind trying an add-on for this, you could look at this one:
https://addons.mozilla.org/firefox/addon/default-bookmark-folder/
In its settings, switch from "use Firefox's default" to the specific folder you prefer as your default.
Note #1: Bookmarks added by drag-and-drop also are affected, so if you ever thought you added a bookmark to a different folder using drag-and-drop and it moved to Other Bookmarks, that would be the reason. You can click the blue star in the address bar to change the folder.
Note #2: If you ever need to restore a backup or import bookmarks, temporarily disable this add-on to prevent it from moving all the restored/imported bookmarks to your default folder.
Thanks for the info. Bit surprised that there is no simple about:config seting to revert back to the old behaviour. No doubt there are people used to it who, upon discovering that a recently added bookmark isn't in Other Bookmarks, will now have to wrack their brains to remember where they added a previous bookmark so they can check if it went into that location instead!
But thanks anyway, I will consider the solutions suggested.