Summary of my Firefox

2009 年 2 月 14 日 コメントをどうぞ コメント

使用している アドオン

  • TwitterFox
    FirefoxからTwitterを閲覧・投稿できるアドオン
  • Stylish
    スタイルシートですぐに反映・管理できるアドオン
  • Greasemonkey
    JavaScriptによるユーザーサイドスクリプトを追加することの出来るアドオン
  • All-in-One Sidebar
    ツールバーを縦置きにできるアドオン
  • Make Link
    コピー機能を拡張するCopy URL+ の代わりになるブロガーに人気のアドオン
  • FaviconizeTab
    特定のタブの幅を縮めるFdoonn
  • Firebug
    説明無用のWebサイト開発ツール
  • Password Exporter
    パスワードのエクスポート、インポートができるアドオン
  • SearchWP
    サーチボックスにハイライトなどの機能を追加してくれるアドオン
  • userChrome.js
    JavaScriptによって拡張機能の代わりになるような機能を追加するためのアドオン
  • YSlow
    FirebugのプラグインでWebサイトの高速化などへの情報を調べることが出来るアドオン

使用している userChrome.js 一覧

  • compactMenu.uc.js
    Tiny Menu の代替・・・が消滅してる・・・。
  • // Compact Menu replacement script
    (function() {
    var compact = document.createElement("menu");
    compact.setAttribute("label", "Menu");

    var mPopup = document.createElement("menupopup");

    var menubar = document.getElementById("main-menubar");
    var menus = menubar.childNodes.length;
    for (var i = 0; i < menus; ++i) {
    mPopup.appendChild(menubar.firstChild);
    }

    compact.appendChild(mPopup);
    menubar.appendChild(compact);

    })();

  • LocationbarNewTab2.uc.js
    ロケーションバーからURL入力してEnterを押すと新規タブで開く
  • save-session-and-exit.uc.js
    「ファイル」メニューに「セッションを保存して終了」メニューを追加
  • open-url-with.uc.js
    コンテキストメニューに現在のページを IE 、Opera で開くためのメニューを追加
  • copy-url-lite.uc.js
    コンテキストメニューに「タイトルと URL をコピー」「タイトルと選択した部分と URL をコピー」メニューを追加
  • textLink.uc.js
    ttp://等から始まるリンクらしき文字列を,ダブルクリックなどで新規タブに開く
  • UndoListInTabmenuToo.uc.js
    最近閉じたタブのリストを履歴メニューだけでなくタブコンテキストメニューにも表示できるようにする
  • popupTranslate.uc.xul
    選択文字列を翻訳し結果をポップアップする。使い方は、中クリックまたはshift+P

Sub-Script/XUL Loader
userChrome.js のメモ – gan2 の Ruby 勉強日記

/* :::::::: Sub-Script/XUL Loader ::::::::::::::: */

// automatically includes all files ending in .uc.js and .uc.xul from the profile's chrome folder

if (location != "chrome://browser/content/browser.xul") throw "stop";

(function() {
  var getURLSpecFromFile = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService).getProtocolHandler("file").QueryInterface(Components.interfaces.nsIFileProtocolHandler).getURLSpecFromFile;
  var chromeDir = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("UChrm", Components.interfaces.nsILocalFile);
  var files = chromeDir.directoryEntries.QueryInterface(Components.interfaces.nsISimpleEnumerator);
  var xul_files = [];

  while (files.hasMoreElements())
  {
    var file = files.getNext().QueryInterface(Components.interfaces.nsIFile);
    if (/\.uc\.js$/i.test(file.leafName))
    {
      setTimeout(function(aFile) {
        Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Components.interfaces.mozIJSSubScriptLoader).loadSubScript(getURLSpecFromFile(aFile));
      }, 0, file);
    }
    else if (/(^userChrome|\.uc)\.xul$/i.test(file.leafName))
    {
      xul_files.push(file);
    }
  }

  setTimeout(function() {
    if (xul_files.length > 0)
    {
      document.loadOverlay(getURLSpecFromFile(xul_files.shift()), null);
      setTimeout(arguments.callee, 0);
    }
  }, 0);
})();

使用している Greasemonkey script 一覧

user.js に書き込んでいる設定一覧

  • // 日本語化
    user_pref(“general.useragent.locale”, “ja-JP”);
  • // JavaScriptなどが開くページを新しいウインドウではなく新しいタブで開く。
    user_pref(“browser.link.open_newwindow.restriction”, 0);
  • // 検索バーで検索したとき新しいタブに開く。
    user_pref(“browser.search.openintab”, true);
  • // タブの「タブを閉じる」ボタンを非表示にする。
    user_pref(“browser.tabs.closeButtons”, 2);
  • // JavaScriptなどが開くページをバックグラウンドで開く。
    user_pref(“browser.tabs.loadDivertedInBackground”, true);
  • // タブ幅の最小値を小さくする。
    user_pref(“browser.tabs.tabMinWidth”, 50);
  • // アドレスバーから新しいタブで開く
    user_pref(“browser.tabs.opentabfor.urlbar”, true);
  • // タブ復元の記憶数
    user_pref(“browser.sessionstore.max_tabs_undo”, 30);
  • //タブの幅 (最大100)
    user_pref(“browser.tabs.tabMinWidth”, 55);
  • //拡張機能のバージョンチェックを回避
    user_pref(“extensions.checkCompatibility”, false);
  • //Firefoxのアップデートシステム設定
    user_pref(“app.update.auto”, false);
    user_pref(“app.update.lastUpdateTime.addon-background-update-timer”, 1169768446);
    user_pref(“app.update.lastUpdateTime.background-update-timer”, 1169768446);
    user_pref(“app.update.lastUpdateTime.blocklist-background-update-timer”, 1169768447);
    user_pref(“app.update.lastUpdateTime.search-engine-update-timer”, 1169768447);
    user_pref(“app.update.url”, “https://aus2.mozilla.org/update/1/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/en-US/nightly/update.xml”);
    user_pref(“app.update.url.override”, “https://aus2.mozilla.org/update/1/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/en-US/nightly/update.xml”);
  1. コメントはまだありません。
  1. トラックバックはまだありません。