1. Home
  2. Archive
  3. Gmailでis:unreadのショートカットを追加するGreasemonkey&GreaseKit 用スクリプト

Gmailでis:unreadのショートカットを追加するGreasemonkey&GreaseKit 用スクリプト

is:unreadを検索ボックスへ挿入するショートカット追加のGreasemonkey&GreaseKitのスクリプトを書いてみました。is:unreadの挿入ボタン追加するやつはあったけどショートカットで使いたかったので。

インストール

下記からインストールできます。
gmailUnread.user.js

追記(2009-1-27):Ctrlなしの/でもis:unreadなってたので修正しました。

Firefoxの場合はGreasemonkey、Safariの場合GreaseKitが必要です。

使い方

一番悩んだのはショートカットをどれにするかなんですが、他に影響でなさそうな感じで、Ctrl+/に割り当てました。

Ctrl+/でis:unreadの文字列が検索ボックスに入って、検索ボックスにフォーカスされます。

gmail_1

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

gmail_2

もしCtrl+/のショートカットが気に入らない場合はここら辺でキーコード調べて変更するといいと思います。
keyイベント(keypress,keyup,keydown)の確認(keyCode,charCode)

動作確認環境

最近GmailはSafariで使ってるんでGreaseKitで使えればよかったんですけど、Greasemonkeyでも動きます。WinとMacのFirefox3、MacのSafari3で確認してます。

コメント一覧

  1. 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!

コメントフォーム

スパムがひどいので一時的にコメントフォーム閉じます。ゴメンナサイ。