Genki Sugawara is sharing code with you Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams. 続きを読む
XUL/Migemo 0.12.xで、機能を他のアドオンとかから呼び出すためのAPIを刷新してみたよ。 古いAPI(はてなブックマーク拡張とかが使ってくれてるやつ)は僕自身が色々よく分からないまま作った物だったために、引数を文字列で渡さないといけないとか戻り値も正規... 続きを読む
Firefoxアドオン, プログラミング | 17:47 | nsIAlertsService は Windows でしか使えない、複数行を表示するのは面倒などの問題があるので、代替する方法です。次のようなファイルを作ります。alert.xul(chrome://sample/content/alert.xul) xml-stylesheet hr... 続きを読む
Jetpack is a newly formed initiative and experiment in using open Web technologies to enhance the browser, with the goal of allowing anyone who can build a Web site to participate in making the Web a better place to work, communicate and play... 続きを読む
今年4月に行なわれたMozillaParty7.0において、いくつか有用な情報を得ることができたが、中でもcanvas 要素の toDataURL メソッドで取得した data:URL をファイルへ保存するという Taken さんの情報は、 ScrapBook で保存したWebページのコレクションをサムネ... 続きを読む
■ ブックマークレット経由ではてなブックマーク拡張のパネルを開く 21:50 ハテブエ (はてなブックマークエクステの略) がいい感じなのでつかいたいのですが、ついついクセで Cmd-L b [RET] とかしてブックマークレットを開いてしまい残念な気持ちになります。... 続きを読む
nsIIdleService は widget/public/nsIIdleService.idl で定義されています。これは scriptable で 非凍結です。 (Mozilla 1.9aから更新されていません) 概要 アイドルサービスは、ユーザがどのくらいの時間「アイドル状態」であるか、つまり、マウスやキーボー... 続きを読む
This repository is private. All pages are served over SSL and all pushing and pulling is done over SSH. No one may fork, clone, or view it unless they are added as a member. Every repository with this icon () is private. This repository is pu... 続きを読む
Table of contents1. Method overview2. Attributes3. Constants4. Methods4.1. initWithCallback()4.1.1.1.1. Parameters4.2. initWithFuncCallback()4.2.1.1.1. Parameters4.3. init()4.3.1.1.1. Parameters4.4. cancel()4.4.1.1.1. Parameters5. Remarks6. E... 続きを読む
Observer topics The following are topics that you can observe during the course of an application. Unless otherwise noted you register for the topics using the observer service. Application startup These are the topics that you can observe on... 続きを読む
この記事では、あなたの Mozilla アプリケーションにおいて拡張機能の開発を容易にするためのノウハウを提案します。 開発用の設定 これらの設定はパフォーマンスの低下と引き換えにデバッグを簡単にします。 設定を変更するための情報は 設定ファイルの編集 を... 続きを読む
XULRunner アプリケーション, 拡張機能, および テーマ のすべてが共通のディレクトリ構造を共有しており、いくつかのケースでは同じ bundle をインストールできるアプリケーション拡張だけではなく単体のXULRunner アプリケーションにも使っています。bundleの... 続きを読む
追記@2008/02/14Mac OS X の Firefoxだと、動的に扱う部分で一部挙動が違う場合があるようです。まとまり次第、追記したいと思っています。------------------アドオンにキーボードショートカットを追加したくなったので、調べたことをメモしていきます。(Windo... 続きを読む
XUL supports templating to create a block of content from a datasource query. The XUL Template Guide has lots of detailed information on using XUL templates. XUL provides template query processors for RDF, XML and SQL (mozStorage). The templa... 続きを読む
XUL supports templating to create a block of content from a datasource query. The XUL Template Guide has lots of detailed information on using XUL templates. XUL provides template query processors for RDF, XML and SQL (mozStorage). The templa... 続きを読む
ウェブページをローカルファイルに保存する 次のコードはユーザにファイル名を入力するように聞いてきませんが、それは ファイルピッカーコンポーネント を使用することで可能です。 var file = Components.classes["@mozilla.org/file/local;1"].createInstanc... 続きを読む
JavaScript こういうふうに、チェックボックスとラベルの間に画像を表示する。 XUL:checkbox - MDC 上のリファレンス通り、以下みたいに書いてもうまくいかない。 以下のように書くとうまくいく。 Mozilla Firefox/chrome/toolkit.jar を展開し、XBLファイル co... 続きを読む
ユーザが選択したファイルやフォルダを表示するような設定UIを作る場合には xul:filefield 要素が便利である。例えば Firefox のダウンロード先フォルダの設定UIには xul:filefield 要素が使われている。 XUL filefield 要素を使うためには、以下の2つのスタイ... 続きを読む
XMLHttpRequests (XHR) are used for lots of things these days. When running a background XHR, however, you might experience some common issues like authentication or bad SSL certificate dialogs popping up. Another problem was starting an XHR, ... 続きを読む
はじめに 制限付き特権を持つ環境下で JavaScript のコードを評価したい場合があるかもしれません。Firefox 1.5 (Gecko 1.8) 以降にはこのための API が存在します。それにはそのコンテキスト内でコードを作成し、評価できる「サンドボックス (sandbox)」という... 続きを読む