Reset
皆さんはGoogleリーダーを使っているでしょうか。デフォルトでも大変使いやすいGoogleリーダーですが、ブラウザの拡張機能やGreasemonkeyスクリプトを組み合わせることで、さらに使い勝手が広がることは多くの方がご存知のことでしょう。当サイトのでも以前、あなたのGoogleリーダーを超便利にする最強のFirefoxアドオンまとめという記事をエントリーしたことがありますが、今回はそのGreasemonkey版ということで、私が普段使っている「これは超便利!」というスクリプトをまとめてみました。 最近では、FirefoxをはじめGoogle Chromeなど多くのブラウザがGreasemonkeyスクリプトの動作をサポートしていることから、特定ブラウザのみで使用可能な拡張機能よりも使い勝手がよく、また管理も楽なので、アドオンなどよりも気軽にインストールしやすいのではないでしょうか。
ブラウザで,リンクとかボタンとかをクリックするときに,マウスカーソルをリンクの上まで持っていくのがめんどうで,困ってた. なにもないところでクリックしたときは,勝手に近くのクリックできそうな要素をクリックしてくれればよいと思ったので,Greasemonkeyを書いた. newmouse.user.js — Gist 動画 newmouse.user.js - YouTube 使い方 Greasemonkeyをインストールすると,旧来のマウスカーソル(旧マウスカーソル)と別に,マウスカーソルがもう一個表示されるようになる(新マウスカーソル). 新マウスカーソルはせわしなく旧マウスカーソルの周りを動きまわって,リンクを見つけると,新マウスカーソルがリンクに張り付いて,クリックできますよ,という感じになる. 旧マウスカーソルが,なにもないところで(具体的には,aや,buttonなど以外の上で)ク
ヤバゲーのことを書こうと思ったのですが、メンテが終わらないのでつなぎです Twitter のタイムラインをはじめ様々な場所で、ユーザ本人の写真を見ることが多くなってきました Facebook はさらにその傾向が強いですし、顔写真を公開することの抵抗が、だんだんと少なくなってきてるのかもしれません 大部分は横顔だったり、遠景で表情がわからなかったりするものですが、稀に顔部分のアップがあります それがカメラ目線だったりすると、なんというか、すごい速さでスクロールアウトさせてしまいたくなります イラストなどは割と平気なのですが、不思議ですね そんなわけで、心の平静を保つための Greasemonkey ユーザスクリプト です たとえば 日本の政治家のタイムライン ですが、さすがに選挙ポスターのような写真がほとんどです ここで先ほどの スクリプト を有効にすると… さらに Greasemonkey
「javascript」、「ウィンドウ」、「前面」辺りでぐぐっても参考になるページが無かったので書いておく。 documentのfocusに対してイベントリスナを登録すればおk。 最初document.bodyに対して登録しててハマった。 document.addEventListener('focus', function (e) { // 処理 }, false);
イベントリスナの登録 document.addEventListener('keydown', function (e) { // 処理 }, false); 他にkeypressってのもあるけど、keydownをお勧め。 理由は確かGoogle chromeでkeypressにすると、Ctrl+a(全て選択)のようにデフォルトで別動作が定義されていた場合にそちらが先に動いてしまうため(だったはず)。 押されたキーの取得 var shortcutKey = 'a'; document.addEventListener('keydown', function (e) { var pressed = String.fromCharCode(e.which).toLowerCase(); pressed = (e.ctrlKey ? 'C-' : '') + (e.altKey ? 'A-' :
ChromeのマウスジェスチャーExtensionで実験的に実装してみたやつが意外と面白かったので、少し手を入れてFirefox, Opera用にユーザースクリプトにしてみました。このスクリプトも実験的なものなので、その点はご了承ください。 Scroll Acceleration for Greasemonkey (Operaで使う場合はファイル名を.user.jsではなく.jsで保存推奨です) これはいわゆる加速スクロールってやつで、マウスホイールを素早く動かすと、速く動かした分だけたくさんスクロールするという代物です。 マウス自体や、マウスジェスチャーソフト(かざぐるマウスとか)にそういう機能があるみたいで、それをJavaScriptで実現してみました。 ちなみになぜ実験的なのかというと、こういう制御はユーザースクリプトのようなレイヤーではなく、OS寄りのところで実装するべきだと思うか
Webページ上でみんなとわいわいできるGreasemonkeyスクリプトを書きました。 wwwlife.user.js 使い方 Greasemonkeyが入っているFirefoxでwwwlife.user.jsをクリック、スクリプトをインストールします。 メニューの ツール > Greasemonkey > User Script Commands > Play WWWLife を選ぶと女の子が出てきます 方向キーで操作。枠線などそれっぽいところを歩けます。 右上の青いところで名前を変えます。はてなのプロフィール画像がでます。 右上のばってんボタンをクリックすると終了します。 特徴など Lingrを使っています → http://www.lingr.com/room/5KYXVjGQHJH APIで部屋を作れないので部屋は一つだけです。数十人でパンクすると思われます。 認証がないとか、話せ
googleautopager.user.js (2007/07/29 ver 1.0) オリジナルの GoogleAutoPager から幾つかのカスタマイズを加えたものです。 リンクを新しいタブで開くように変更しています。 "Now Loading" のエフェクトを表示します。 検索結果が尽きたときに "End" のエフェクトを表示します。 GoogleAutoPager が必ず有効化されるようになっています。 はてなブックマーク のブックマーク数を表示します。 ( いぬビーム さんのスクリプトを元にしています)。 【注意】 いぬビーム さんの「Google x はてブ」スクリプトがインストールされていると 二重にリンクが張られてしまいますので、無効化させておいてください。 [2007/08/24] リンクを追加しました。 (GoogleFloatingForm) [2007/07/2
googleautopager.user.js (2007/07/29 ver 1.0) オリジナルの GoogleAutoPager から幾つかのカスタマイズを加えたものです。 リンクを新しいタブで開くように変更しています。 "Now Loading" のエフェクトを表示します。 検索結果が尽きたときに "End" のエフェクトを表示します。 GoogleAutoPager が必ず有効化されるようになっています。 はてなブックマーク のブックマーク数を表示します。 ( いぬビーム さんのスクリプトを元にしています)。 【注意】 いぬビーム さんの「Google x はてブ」スクリプトがインストールされていると 二重にリンクが張られてしまいますので、無効化させておいてください。 [2007/08/24] リンクを追加しました。 (GoogleFloatingForm) [2007/07/2
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く