Firefox

kc2ks

keyconfig の設定を KeySnail に引き継ぐ。https://gist.github.com/858606 2011-03-24 Fx4 を期に乗り換えるつもりで書いたが、若干の変更のみであっさり動いたため結局 keyconfig を使い続けている。そもそも用途が完全に被るわけではないので両方入れてお…

gpum

https://github.com/mooz/gpum惰性で使ってた Notifier が壊れたので乗り換え。快適至極。

AutoPager.ize()

AutoPager 自動更新先の Wedata ミラーが微妙に古い。 のでオリジナルから手動更新。 // Run in chrome://browser/content UpdateSites.updateSites.every(function(s){ if(!~s.url.indexOf('AutoPagerize')) return true; s.url = 'http://wedata.net/datab…

alnumpop

http://gist.github.com/479545 履歴・タブ一覧のポップアップにアクセスキーを振る。 key{config,snail} から開く設定と併用。

lmnpop

https://addons.mozilla.org/addon/196133 / GitHub - satyr/lmnpop: Pops elements as resizable windows. 説明 DOM 要素をポップアップ 詳細 親切な誰かが書いてくれた 用途 Flash 観賞等 経緯 単に open('data:text/html,'+ parent.innerHTML) とかすると…

Halt Alert

http://gist.github.com/418451 alert ループ脱出用 uc.js。commonDialog.xul に checkbox を追加する。 Stop script 親ウィンドウのスクリプト実行を不許可に。setInterval(alert,0) とか onkeydown=onmousemove=alert とかに有効。 Wipe window 親ウィンド…

xqjs

http://github.com/satyr/xqjs (AMO) 簡易JS実行環境。習作第二弾。 機能 DOMi 風の対象ウィンドウ選択 プリプロセッサ JSマクロ CoffeeScript 入力履歴 単語補完 出力用関数とか は this を参照 作成動機 一々 function を書きたくない。 話題の CoffeeScri…

uc

http://github.com/satyr/uc (AMO) userChromeJS もどきに subscriptoverlayloader.js 相当の機能を付けた拡張。 いい加減 XUL を覚えねばと思い*1,習作として作成。 ○ 読み込み元を複数指定可能*2 若干高速 メタ情報をいちいち読まない(起動時とファイル…

プロトコル別ローカルファイル上クライアントサイド永続ストレージ事情

code \ URI scheme file: chrome: resource: localStorage ×*1 ×*2 ✔ globalStorage[location.hostname] ×*3 ✔ ✔ document.cookie ✔ ×*4 ✔ Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2 落としてきた twicli…

caret@hint

Hit-a-Hint もどきに続き,Caret Hint もどきを作った。 caret@hint · GitHub javascript:"caret@hint",['http://gist.github.com/230771.txt',function(d){d.body.appendChild(d.createElement('script')).src=this[0]}][1](document) 機能 ヒントで選んだ…

eval(uneval(function()_))

function f(){let _,{x}=0} uneval(f); //=> function f() {var _, var {x} = 0;} eval(uneval(f)); //=> SyntaxError: missing variable name というバグに出くわした。トップレベルなので var に変わるのはいいとして,問題は変に増えて構文エラーになると…

summary ⇔ content

Firefoxのフィードプレビュー画面、なんでショボいんだ、省略されてるのかわらかん http://twitter.com/33/status/5119532557 本当にそうだと思うので,書き換えてしまうことにした。 --- a/components/FeedWriter.js +++ b/components/FeedWriter.js @@ -45…

プラグインからフォーカスを外す

93149 - [meta] No way to move focus between plugin and browser from keyboard を MozRepl 経由で外部から。 http://gist.github.com/201343↑こんな感じのスクリプトを書いて「ショートカットを作成」し,実行時の大きさを「最小化」にして適当なキーを割…

タブリストのポップアップ

*1 var p = gBrowser.mTabContainer.mAllTabsPopup; p.style.visibility = "visible"; p.openPopupAtScreen(screen.width, 0); //document.getAnonymousElementByAttribute(gBrowser.mTabContainer, 'anonid', 'alltabs-popup').openPopup(gBrowser, '', 0, …

slightly more ubiquitous

keyconfig FireGestures MozRepl + Ruby http://gist.github.com/160204 MozRepl + xyzzy http://gist.github.com/186012 Ubiquity#preview() は 0.5.5 から。 Firefox を前面に持ってくる方法が判らず,minimize();restore();focus() は苦肉の策。

hit@hint bookmarklet

ちゃんと動いてるっぽいので移植。 http://gist.github.com/89131javascript:"hit@hint",['http://gist.github.com/89131.txt',function(d,i,e){for(i=this.length;--i;d.body.appendChild(e))e=d.createElement('script'),e.src=this[i],e.charset='utf-8'}…

選択タブを伸ばす

見えなくてもほぼ困らないとか書きつつやっぱりタイトルが見辛くて困ったので以下を設定した。 @-moz-document url("chrome://browser/content/browser.xul"){ .tab-text {max-width:40px} tab[selected="true"] .tab-text {max-width:40em} }

toprightmost

起動直後(とキー入力時)に Firefox を右上にくっつける。手動で調整しても勝手に画面内に納まってしまうので。 http://gist.github.com/68094 Windows で下タスクバー前提。 タイトルバーは 1px だけ残して画面外へ。 見えなくてもほぼ困らない。表示域の高…

タブの移動をキーボードで

マウスを使わずにタブを並べ替える方法。 Firefox デフォルト どうにかしてタブバーにフォーカス。「ctrl+K → Tab」が最短? ctrl+Up / ctrl+Left ctrl+Down / ctrl+Right ctrl+Home ctrl+End で動かす。 カスタム gBrowser.moveTabForward() gBrowser.moveT…

toggleFindBar

検索バーを閉じれるようにする keyconfig 用スニペット。 with(document.getElementById('FindToolbar')) hidden ? onFindCommand() : close(); gFindBar だと view(Partial)?Source.xul で動かないので #FindToolbar を使う。

Find Amid

文書中検索の結果を画面領域中央に表示するUserChrome.js http://mayokara.info/deadspace/?008#d20090202 が気に入ったのでちょっと弄って((見つからなかったときを考慮 onFindAgainCommand → _findAgain 元のコードを残す ソースビューアにも適用)) uc.js …

TMP_BLURL4BML

http://gist.github.com/54346TMP がブックマークレットも新しいタブに開いてしまうのを強引に直す。 3.1 には BrowserLoadURL が無いらしいので今だけ。 3.1b3 に対応。

autoContentFocus

http://gist.github.com/53269 #urlbar から新しいタブ 何かする 元のタブに戻って読み進める #urlbar に [ jn]+ がっかり てなことがよくあるので。外側の setTimeout が無いと怒られる*1。 *1:gBrowser is null

toggleTabCrop

タブのタイトル省略を切り替えるスニペット。keyconfig か何かで。 gBrowser.mTabs.forEach(function(t){ t.crop = t.crop === 'end' ? 'none' : 'end'; }) この手のトグル処理をもっと簡潔に書けないかといつも思う。この短さで重複が二つも生じるのが気持…

bookmarkeys

Bookmark Keys modoki for userChrome.js 0.8 (+ subscriptoverlayloader.js). http://gist.github.com/46836

favicon || delete icon

要は を消して文字タイトル幅を広げたい。 @-moz-document url("chrome://browser/content/browser.xul"){ /* for bookmark toolbar */ #bookmarksBarContent > toolbarbutton:not([image]) > .toolbarbutton-icon, /* for tabs */ .tab-icon-image:not([src…

コンパクトメニューもどき

http://userstyles.org/styles/13695 Ubiquity 上のアクセスキーと衝突するので CompactMenu2 を外し,代わりに。 + いらんことするのをやめた(らなんか違うものになった)。

restart

http://gist.github.com/35040 restartApp を移植しただけ。 オマケ keyconfig 用スニペット。 +function(){ const os = Components.classes['@mozilla.org/observer-service;1'] .getService(Components.interfaces.nsIObserverService); const cancelQuit …

GR compaction

Google Reader Moderately Compact | Userstyles.org 記事部分の高さに100px程プラス。 + http://userstyles.org/styles/8983 から auto-resizing を拝借。 + userstyles.org に登録。Google Reader Absolutely Compact に対抗してみる。

少し広く

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); #content hbox, #content tab, toolbarbutton, toolbox, toolbar {border:none !important} #urlbar-search-splitter {display:none !important} #content * {margin:0 !…