Customizable Toolbar Buttons ボタン設定メモ
posted by nano on September 18, 2005 05:06
![]()
Customizable Toolbar Buttons 0.1.5
「Bloglinesに追加」「FEEDBRINGERに追加」「HTML Lintでチェック」などなど、ブックマークレットでできることをFirefoxのツールバーボタンにわざわざする必要のある方のみ必見なお品書きとなっております...
ボタン追加の基本操作
- Customizable Toolbar Buttons Settingsのオプション画面で
New button
を押す localname(button or toolbarbutton)
にtoolbarbutton
と入力- Textタブの
label =
とtooltiptext =
に ボタンのなまえ を入力 - Viewタブの
image =
に 画像の場所 を入力 - Event 1タブの
oncommand =
にスクリプト を入力
ボタンのなまえ, スクリプトはそれぞれ違うので以下に示します。画像の場所は、自分でテケトーにアイコンをつくったりして下さい。アイコンの大きさは、小さいアイコンは一般的な16x16ピクセルのものでなく、14x14ピクセルくらいがしっくりきます。大きいアイコンはよくわかりません...ボタンのなまえは表示されてるのと別のモノでもたぶんOKです。スクリプトは現在のタブにそのまま開くものと新しいタブを開くものがあるので、お好きな方を選んでください。
Bloglinesにフィードを追加
ボタンのなまえ:AddBloglines
スクリプト(現在のタブに開く場合):
window._content.document.location='http://www.bloglines.com/sub/'+(window._content.document.location.href);
スクリプト(新しいタブに開く場合):
gBrowser.selectedTab=gBrowser.addTab('http://www.bloglines.com/sub/'+(window._content.document.location.href));
livedoor Readerにフィードを追加(05.29.2006追記)
ボタンのなまえ:Add
スクリプト(現在のタブに開く場合):
window._content.document.location='http://reader.livedoor.com/subscribe/'+(window._content.document.location.href);
スクリプト(新しいタブに開く場合):
gBrowser.selectedTab=gBrowser.addTab('http://reader.livedoor.com/subscribe/'+(window._content.document.location.href));
FEEDBRINGERにフィードを追加
ボタンのなまえ:AddFEEDBRINGER
スクリプト(現在のタブに開く場合):
window._content.document.location='http://feedbringer.net/feed/add?url='+encodeURIComponent(window._content.document.location.href);
スクリプト(新しいタブに開く場合):
gBrowser.selectedTab=gBrowser.addTab('http://feedbringer.net/feed/add?url='+encodeURIComponent(window._content.document.location.href));
はてな系
はてなとなかよしCustomizable Toolbar Buttonsを参照して下さい.
HTML Lintでチェック
ボタンのなまえ:LintThis
スクリプト(現在のタブに開く場合):
window._content.document.location='http://openlab.ring.gr.jp/k16/htmllint/htmllint.cgi?ViewSource=on&URL='+encodeURIComponent(window._content.document.location.href);
スクリプト(新しいタブに開く場合):
gBrowser.selectedTab=gBrowser.addTab('http://openlab.ring.gr.jp/k16/htmllint/htmllint.cgi?ViewSource=on&URL='+encodeURIComponent(window._content.document.location.href));
いま見ているページのソースを表示する(09.18.2005追記)
ボタンのなまえ:ViewSource
スクリプト(現在のタブに開く場合):
window._content.document.location='view-source:'+(window._content.document.location.href);
スクリプト(新しいタブに開く場合):
gBrowser.selectedTab=gBrowser.addTab('view-source:'+(window._content.document.location.href));
いま見ているページの先頭にもどる(09.19.2005追記)
ボタンのなまえ:Top
スクリプト:
window._content.scrollTo(0,0);