Gmailでis:unreadのショートカットを追加するGreasemonkey&GreaseKit 用スクリプト
- 2009年01月26日
- category:javascript
- Comment(1)
- Trackback(0)
is:unreadを検索ボックスへ挿入するショートカット追加のGreasemonkey&GreaseKitのスクリプトを書いてみました。is:unreadの挿入ボタン追加するやつはあったけどショートカットで使いたかったので。
インストール
下記からインストールできます。
gmailUnread.user.js
追記(2009-1-27):Ctrlなしの/でもis:unreadなってたので修正しました。
Firefoxの場合はGreasemonkey、Safariの場合GreaseKitが必要です。
使い方
一番悩んだのはショートカットをどれにするかなんですが、他に影響でなさそうな感じで、Ctrl+/に割り当てました。
Ctrl+/でis:unreadの文字列が検索ボックスに入って、検索ボックスにフォーカスされます。

Ctrl+Shift+/で現在検索ボックスに入っているテキストの後に続けてis:unreadが入力されます。ラベルを選んだ後、Ctrl+Shift+/とすると特定ラベルの未読が検索できていい感じです。

もしCtrl+/のショートカットが気に入らない場合はここら辺でキーコード調べて変更するといいと思います。
keyイベント(keypress,keyup,keydown)の確認(keyCode,charCode)
動作確認環境
最近GmailはSafariで使ってるんでGreaseKitで使えればよかったんですけど、Greasemonkeyでも動きます。WinとMacのFirefox3、MacのSafari3で確認してます。
- Prev Entry
- zshのbindkeyが子プロセスのzshに反映されない現象
- Next Entry
- symfonyでsvn:ignoreの設定
コメントフォーム
スパムがひどいので一時的にコメントフォーム閉じます。ゴメンナサイ。

コメント一覧
CPA Beyond 2011年11月12日 20時48分
What i do not understood is actually how you are not really much more well-liked than you may be now. You're so intelligent. You realize thus considerably relating to this subject, made me personally consider it from numerous varied angles. Its like men and women aren't fascinated unless it is one thing to accomplish with Lady gaga! Your own stuffs nice. Always maintain it up!