我最近将我的所有 Firefox 配置文件迁移到了最新版本 58.0.2。
对于某些配置文件,我在 FF57+ 之前使用的自定义工具栏现在消失了。我认为这个自定义工具栏是由旧版扩展程序 Classic Theme Restorer 带来的。由于此扩展程序在 FF57+ 中不再受支持,因此工具栏消失了,这很正常。
我的自定义工具栏是包含 AdBlock Plus 红色图标(以及其他图标)的工具栏。
这给了我一些希望。这清楚地表明自定义工具栏仍在实现,尽管我们不能直接从 GUI 创建它。我检查了以下browser.uiCustomization.state
参数about:config
:
{"placements":{"widget-overflow-fixed-list":[],"__customToolbar_Syl":["bookmark-manager","bookmarks-menu-button1","bookmarks-button","history-button","feed-button","custom-button-1","customizableui-special-separator1404","previous-tab","next-tab","top-page","bottom-page","crowdext-toolbar-button","printpdf-toolbar-button","toggleprivatebrowsing-toolbar-button","emptycachebutton-button","cacheviewer-button","resurrect-page-tb","_0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3_-browser-action","customizableui-special-separator1409","extensionsoptionsmenutoolbar","addons","firefox-extension","about-config","profile-folder","javaScriptConsole","_d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d_-browser-action"],"PersonalToolbar":["yahoo-button","hotmail-button","google","customizableui-special-separator9","tb-search-resize","tb-search-plus","sidebar-button","personal-bookmarks","ctr_bookmarks-menu-toolbar-button"],"nav-bar":["back-button","forward-button","stop-reload-button","home-button","ctraddon_appbutton","ctraddon_back-forward-button","unified-back-forward-button","snap-back","up-directory","clipboard-button","snap-back-single_codefisher_org-browser-action","urlbar-container","reload-skip-cache-single_codefisher_org-browser-action","_888f1f2b-8824-4f2d-a220-558a7f1c2bc2_-browser-action","downloads-button","stop-button","reload-skip-cache","pageinfo","AWESEARCH_toolbarbutton","autosizer-button","SynoToolbarButton","window-controls","social-toolbar-item","show_menu_other_id","firebug-button","webrtc-status-button","ctr_back-forward-button","ctr_appbutton","ctr_puib_separator","ctr_panelui-button","ctr_window-controls","widget:{30E08C68-889E-11E0-95EF-DA7E4824019B}-cvc-addon-bar-icon","ctraddon_puib_separator","ctraddon_panelui-button","ctraddon_window-controls","synoloader_toolbar_id","widget:addonListDumper@jetpack-eldumper","action-button--customizable-shortcutstimtaubertde-shortcuts-button","action-button--sortbookmarksbouanto-auto-sort-bookmarks-sort-all-toolbar","action-button--sortbookmarksbouanto-sort-all","downloadbar-ddnbr","toggle-button--jid1-xghxof1m8uppsqjetpack-manage-search-engines","action-button--jid1-f9uj2thwoam5gqjetpack-lightbeam_idget","action-button--donottrackplusabinecom-blur","action-button--jid0-ofwt2zcakhhkfl7kp4ljnjetpack-smarthttps","ublock0-button","ipfuck-toolbar-button","noscript-tbb","sortbookmarks_bouanto-browser-action","screenshots_mozilla_org-browser-action"],"TabsToolbar":["tabbrowser-tabs","new-tab-button","btn_tabslist","tabhunterToolbarIcon","btn_undoclose","btn_closedwindows","tabmix-tabs-closebutton","alltabs-button","closetab_fmarin_com-browser-action","_5997e7bd-1940-4058-a5f4-1562afce6353_-browser-action","jid0-bnmfwww2w2w4e4edvcddbnmhdvg_jetpack-browser-action","treestyletab_piro_sakura_ne_jp-browser-action","alltabshelper_alltabshelper_org-browser-action","tabhunter_ericpromislow_com-browser-action","ctraddon_tabs-closebutton"],"toolbar-menubar":["menubar-items","ecb-button","restart-app","SaveSession-exit-button","UpdateAddonButton","ExitButton","version-icon_magicp_jp-browser-action","_4cc4a13b-94a6-7568-370d-5f9de54a9c7f_-browser-action","tab-session-manager_sienori-browser-action","customizableui-special-separator66","_479f0278-2c34-4365-b9f0-1d328d0f0a40_-browser-action","_16898b73-edd0-419f-a0a9-e5afd2a4c904_-browser-action","_6ac85730-7d0f-4de0-b3fa-21142dd85326_-browser-action","linkgopher_oooninja_com-browser-action","_b3e677f4-1150-4387-8629-da738260a48e_-browser-action","formhistory_yahoo_com-browser-action","_32af1358-428a-446d-873e-5f8eb5f2a72e_-browser-action","_72b2e02b-3a71-4895-886c-fd12ebe36ba3_-browser-action","jid1-mnnxcxisbpnsxq_jetpack-browser-action","firefox_ghostery_com-browser-action","ublock0_raymondhill_net-browser-action","donottrackplus_abine_com-browser-action","_46551ec9-40f0-4e47-8e18-8e5cf550cfb8_-browser-action","web2pdfextension_17_acrobat_adobe_com-browser-action","_95322c08-05ff-4f3c-85fd-8ceb821988dd_-browser-action","_02450914-cdd9-410f-b1da-db004e18c671_-browser-action"],"addon-bar":["addonbar-closebutton","customizableui-special-spring8","status-bar"],"ctraddon_addon-bar":["stylish-toolbar-button","ctraddon_addonbar-close","customizableui-special-spring57","firebug-inspectorButton","ctraddon_statusbar","historystatebutton-toolbar-button"],"ctraddon_extra-bar":["RTCButton","colorzilla-navbar-button","measureit_toolbar_button","toggle-button--compatibilityaddonsmozillaorg-acr-dialog","firebug-badged-button","customizableui-special-spring58","social-share-button","BetterPrivacyButton","abp-toolbarbutton","flashgot-media-tbb","loop-button","sync-button"],"web-developer-toolbar":["web-developer-disable-toolbar","web-developer-cookies-toolbar","web-developer-css-toolbar","web-developer-forms-toolbar","web-developer-images-toolbar","web-developer-information-toolbar","web-developer-miscellaneous-toolbar","web-developer-outline-toolbar","web-developer-resize-toolbar","web-developer-tools-toolbar","web-developer-view-source-toolbar","web-developer-options-toolbar","customizableui-special-spring47","web-developer-render-mode-statusbar","web-developer-css-statusbar","web-developer-javascript-statusbar"]},"seen":["abp-toolbarbutton","help","about-disk-cache","workoffline","themes","tb-print-page","find-prev","hide-images","new-message","find","about-plugins","toolbar-menu","close-other-tabs","installaddons","java-toggle","select-all","tb-twitter-button","reset","about-config","tb-search-resize","close-all-tabs","close-tab","tb-page-info-media","websearch","stop-movies","firefox-extension","read-news","clear-data","javaScriptConsole","tb-search-plus","tb-view-menu","clear-url","google","read-mail","reduce","tb-clone-tab","toggle-proxy","bookmarks-menu-button1","bookmarks-menu-button2","gmail","tb-toggle-popup-blocker","preferences","label-all-blank","print-preview","wikipedia","reload-all-tabs","exit","import","tb-clear-url","favorite-page","thunderbird-theme","bottom-page","tb-all-menus","undo","min-font-size","image-toggle","reload-skip-cache","tb-show-all-history","tb-clear-cache","show-frame","tb-saved-passwords","stop-dynamic-content","extensions","statusbar-toggle","addons","bookmark-nopop","tb-open","javascript-toggle","stop-iframe","redo","next-tab","saveas","delete-button","tb-clear-search","snap-back","stop-all","tb-toggle-menu-bar","bookmark","customize-toolbar","top-page","find-again","tab-list","stop-flash","inspecter","toggle-styles","translate","pageinfo","stop-cookies","bookmark-tabs","undo-close-tab","tb-file-menu","rename-tab","paypal","about-mem-cache","page-source","thunderbird-extension","personal-bookmarks-menu-button","restart-app","previous-tab","about-application","tb-history-menu","ebay","tb-tools-menu","tb-search-go-button","yahoo-button","change-text-direction","save-frame","pagesetup","hotmail-button","tb-new-tab","about-cache","minimize-window","tb-edit-menu","tb-about-about","bookmark-manager","up-directory","clipboard-button","toggle-bookmark-toolbar","stop-animation","enlarge","reload-proxy","open-current-frame","toggle-toolbar","profile-folder","full-screen","tb-search-minus","tb-page-reload","use-document-fonts","tb-check-for-update","tb-about-blank","firefox-theme","tb-page-stop","link-open","label-blank","send-link","tb-cookie-manager","use-document-colors","tb-url-go-button","dictionary-list","action-button--customizable-shortcutstimtaubertde-shortcuts-button","action-button--sortbookmarksbouanto-auto-sort-bookmarks-sort-all-toolbar","action-button--sortbookmarksbouanto-sort-all","toggle-button--jid1-xghxof1m8uppsqjetpack-manage-search-engines","loop-button","pocket-button","developer-button","action-button--jid1-f9uj2thwoam5gqjetpack-lightbeam_idget","_6ac85730-7d0f-4de0-b3fa-21142dd85326_-browser-action","_4cc4a13b-94a6-7568-370d-5f9de54a9c7f_-browser-action","toggle-button--compatibilityaddonsmozillaorg-acr-dialog","jid1-mnnxcxisbpnsxq_jetpack-browser-action","action-button--donottrackplusabinecom-blur","firefox_ghostery_com-browser-action","action-button--jid0-ofwt2zcakhhkfl7kp4ljnjetpack-smarthttps","ublock0-button","donottrackplus_abine_com-browser-action","ublock0_raymondhill_net-browser-action","webide-button","_95322c08-05ff-4f3c-85fd-8ceb821988dd_-browser-action","tabhunter_ericpromislow_com-browser-action","_d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d_-browser-action","_46551ec9-40f0-4e47-8e18-8e5cf550cfb8_-browser-action","web2pdfextension_17_acrobat_adobe_com-browser-action","sortbookmarks_bouanto-browser-action","screenshots_mozilla_org-browser-action","alltabshelper_alltabshelper_org-browser-action","_72b2e02b-3a71-4895-886c-fd12ebe36ba3_-browser-action","closetab_fmarin_com-browser-action","_16898b73-edd0-419f-a0a9-e5afd2a4c904_-browser-action","_32af1358-428a-446d-873e-5f8eb5f2a72e_-browser-action","formhistory_yahoo_com-browser-action","_479f0278-2c34-4365-b9f0-1d328d0f0a40_-browser-action","linkgopher_oooninja_com-browser-action","_888f1f2b-8824-4f2d-a220-558a7f1c2bc2_-browser-action","reload-skip-cache-single_codefisher_org-browser-action","_02450914-cdd9-410f-b1da-db004e18c671_-browser-action","_0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3_-browser-action","_b3e677f4-1150-4387-8629-da738260a48e_-browser-action","snap-back-single_codefisher_org-browser-action","jid0-bnmfwww2w2w4e4edvcddbnmhdvg_jetpack-browser-action","tab-session-manager_sienori-browser-action","version-icon_magicp_jp-browser-action","_5997e7bd-1940-4058-a5f4-1562afce6353_-browser-action","treestyletab_piro_sakura_ne_jp-browser-action"],"dirtyAreaCache":["__customToolbar_Syl","addon-bar","PersonalToolbar","nav-bar","TabsToolbar","toolbar-menubar","PanelUI-contents","ctr_addon-bar","ctr_extra-bar","web-developer-toolbar","ctraddon_addon-bar","ctraddon_extra-bar"],"currentVersion":13,"newElementCount":1424}
我们看到“__customToolbar_Syl”自定义工具栏仍然被引用(在没有我的自定义工具栏的配置文件中并非如此)。
结构如下:
{
"placements":
{
"widget-overflow-fixed-list":[]
,"__customToolbar_Syl":[...] => my custom toolbar
,"PersonalToolbar":[...] => bookmarks toolbar
,"nav-bar":[...] => toolbar containing the address bar
,"TabsToolbar":[...] => toolbar containing the tabs
,"toolbar-menubar":[...] => top toolbar containing the menus
,"addon-bar":[...] => this is my old toolbar at the bottom (which was used by Download Status Bar (legacy extension)
,"ctraddon_addon-bar":[...] => old toolbar of Classic Theme Restorer extension
,"ctraddon_extra-bar":[...] => old toolbar of Classic Theme Restorer extension
,"web-developer-toolbar":[...] => old toolbar of a dev extension
}
,"seen":[...]
,"dirtyAreaCache":["addon-bar","PersonalToolbar","nav-bar","TabsToolbar","toolbar-menubar","PanelUI-contents","ctraddon_addon-bar","web-developer-toolbar","ctraddon_extra-bar","widget-overflow-fixed-list"]
,"currentVersion":13
,"newElementCount":1424
}
我尝试将我的自定义工具栏插入另一个配置文件(在“placements”和“dirtyAreaCache”中),但从未成功。每次重新启动 Firefox 时,工具栏都会从参数中删除browser.uiCustomization.state
。我不明白为什么在某些配置文件中我的自定义工具栏从未被删除,而在其他配置文件中却被删除。我希望 Firefox 将在下一个版本中提供创建自定义工具栏的可能性。否则,我们将在哪里放置所有扩展的按钮/图标?目前我将它们放在菜单工具栏中,但这并不理想(在屏幕截图上,您看到很少的扩展图标,因为这是一个测试配置文件。在我的生产配置文件中,我有 100 多个扩展...)
Mozilla 根本没有提供有关此参数的文档。例如,我自己发现我可以使用此browser.uiCustomization.state
参数在不同的工具栏中插入自定义分隔符。
我还在 support.mozilla.org 中创建了支持请求。
答案1
我browser.uiCustomization.state
使用两个工具验证了它仍然在被使用(用伪 Firefox 61 测试)。
- 在 Firefox 中,转到 Firefox 的关于:配置页。
- 搜索
browser.uiCustomization.state
。 - 右键单击,然后左键单击复制值。
- 为了使 JSON 字符串清晰易读,请验证https://jsonlint.com/
我高度建议保存 Firefox 配置文件的备份第一的以防损坏。我一直坚信 Firefox 的最初开发是因为 Mozilla Suite(现在的 Mozilla SeaMonkey)不是可定制。Mozilla?我只有一个词:毒品。
如果你不介意渲染引擎被锁定在 Gecko 56,我强烈建议使用水狐。它适用于所有原始扩展,我建议您保存源代码,以免 Mozilla 也毁掉它。几年前,我也曾花时间尝试让人们的生活更轻松修复 Firefox。