Firefoxに関するメモ

about:config関係の設定

Firefox36以降の検索バーを以前の方式に戻す

browser.search.showOneOffButtons の値を false にする。

検索バーの検索結果を常に新しいタブで開く

browser.search.openintab の値を true にする。

ソース表示がタブで開くやうになつた場合に元に戻す

view_source.tab の値を false にする。

古いプラグインが無効化された時に有効化する方法

xpinstall.signatures.required の値を false にする。

プラグイン関係の設定

KeySnailの設定

keySnailの設定ファイル".keysnail.js"の内容を書いておく。

// ========================== KeySnail Init File =========================== //

// この領域は, GUI により設定ファイルを生成した際にも引き継がれます
// 特殊キー, キーバインド定義, フック, ブラックリスト以外のコードは, この中に書くようにして下さい
// ========================================================================= //
//{{%PRESERVE%
// ここにコードを入力して下さい
//}}%PRESERVE%
// ========================================================================= //

// ========================= Special key settings ========================== //

key.quitKey              = "undefined";
key.helpKey              = "undefined";
key.escapeKey            = "undefined";
key.macroStartKey        = "undefined";
key.macroEndKey          = "undefined";
key.universalArgumentKey = "undefined";
key.negativeArgument1Key = "undefined";
key.negativeArgument2Key = "undefined";
key.negativeArgument3Key = "undefined";
key.suspendKey           = "undefined";

// ================================= Hooks ================================= //

// ============================= Key bindings ============================== //

key.setGlobalKey('M-s', function (ev) {
    command.focusToById("searchbar");
}, '検索バーへフォーカス', true);

key.setViewKey('t', function (ev, arg) {
    command.setClipboardText(content.document.title);
}, 'copy_document_title');

key.setViewKey('u', function (ev, arg) {
    command.setClipboardText(content.location.href);
}, 'copy_document_url');

key.setViewKey('C', function (ev, arg) {
    var w = window._content;
    var d = w.document;
    var tag = "<a href=\"" + d.location.href + "\">" + d.title + "</a>";
    const CLIPBOARD = Components.classes['@mozilla.org/widget/clipboardhelper;1'].getService(Components.interfaces.nsIClipboardHelper);
    CLIPBOARD.copyString(tag);
}, 'copy URL タグ');

key.setViewKey('M-c', function (ev, arg) {
    var w = window._content;
    var d = w.document;
    var tag = "<a href=\"" + d.location.href + "\" title=\"" + d.title + "\">" + "</a>";
    const CLIPBOARD = Components.classes['@mozilla.org/widget/clipboardhelper;1'].getService(Components.interfaces.nsIClipboardHelper);
    CLIPBOARD.copyString(tag);

}, 'コピー URL タイトル');

inserted by FC2 system