Firefox
https://gyazo.com/8b5e56dbb37e6bdaa5c9cd4c9f12debb
autoconfig
取消預設的bookmark、history側邊欄快捷鍵綁定
Ctrl+B、Ctrl+H
Linux:預設安裝處 /usr/lib/firefox/
Firefox 115之前?
browser/defaults/preferences/config-prefs.js
config.js
Firefox 117無效
Firefox 117有效
defaults/pref/autoconfig.js
autoconfig.cfg
code:autoconfig.js
pref("general.config.obscure_value", 0);
pref("general.config.filename", "autoconfig.cfg");
pref("general.config.vendor", "autoconfig");
pref("general.config.sandbox_enabled", false);
code:autoconfig.cfg(javascript)
try {
function ConfigJS() { Services.obs.addObserver(this, 'chrome-document-global-created', false); }
ConfigJS.prototype = {
observe: function (aSubject) { aSubject.addEventListener('DOMContentLoaded', this, {once: true}); },
handleEvent: function (aEvent) {
let document = aEvent.originalTarget; let window = document.defaultView; let location = window.location;
if (/^(chrome:(?!\/\/(global\/content\/commonDialog|browser\/content\/webext-panels)\.x?html)|about:(?!blank))/i.test(location.href)) {
if (window._gBrowser) {
////////////////////////////////
for (var i=0; i < keys.length; i++) {
let keyCommand = window.document.getElementById(keysi); if (keyCommand != undefined) {
keyCommand.remove();
}
}
////////////////////////////////
}
}
}
};
if (!Services.appinfo.inSafeMode) { new ConfigJS(); }
} catch(ex) { };
重新開啟
可用about:profiles裡的快速重啟
kujakujira.icon預設不能覆寫真的挺干擾使用的
一個是Hatena bookmark,一個是surfingkeys的移動分頁