Okay. I tested the autoconfig files with Firefox Portable Legacy 78. It works for me.
* C:\FirefoxPortableLegacy78\App\Firefox\defaults\pref\autoconfig.js
* C:\FirefoxPortableLegacy78\App\Firefox\mozilla.cfg
* C:\FirefoxPortableLegacy78\Data\profile\chrome\ToggleBookmarksToolbarFirefoxShortcut.uc.js
Remember to delete the config-prefs.js and config.js files.
Check if the ToggleBookmarksToolbarFirefoxShortcut.uc.js file is really in the chrome folder in the correct profile folder.
Menu Bar > Help > Troubleshooting Information > Update Folder > Open Folder
Menu Bar > Help > Troubleshooting Information > Profile Folder > Open Folder (click here)
Check if the mozilla.cfg file is in the installation folder.
Installation folder
http://kb.mozillazine.org/Installation_directory
You may need a short delay before running the script. Try this:
* <profile directory>\chrome\ToggleBookmarksToolbarFirefoxShortcut.uc.js
Code: Select all
(function () {
if (location != "chrome://browser/content/browser.xul" &&
location != "chrome://browser/content/browser.xhtml") return;
// Ctrl+Shift+B toggles the bookmarks toolbar
setTimeout(function () {
var key = document.getElementById("manBookmarkKb");
key.setAttribute("oncommand", "BookmarkingUI.toggleBookmarksToolbar('bookmark-tools');");
key.removeAttribute("command");
}, 1000);
})();
Also, test the script using the browser console.
Instructions:
* open about:config page
* set devtools.chrome.enabled preference to true
* open browser console i.e. tools > web developer > browser console
* copy and paste code into browser console command line
* press enter to run