心魅 - cocoromi -

半角スペース時々全角

extension

gmWrapperのソースをgithubで公開しました

グリモンuserscriptをChromeに移植するときに使う、GM APIのラッパっぽいものとプロジェクトテンプレートを書いた - 心魅 〜 cocoromi 〜 上記のエントリーでアップしたChrome用のGreaseMonkeyラッパーのソースをgithubにupしました。http://github.com/umez…

グリモンuserscriptをChromeに移植するときに使う、GM APIのラッパっぽいものとプロジェクトテンプレートを書いた

2010/10/17 公開先をGithubにしています。 http://d.hatena.ne.jp/umezo/20100411/1270988391 Chrome速くて良いのですが、いかんせん、グリモンとか便利な物が無い。 そこでグリモンのスクリプトをextensionとしてChromeに持って行きたいのですが、GM_*なAPI…

localStorageをつかってエクステンションの設定を管理する

エクステンションではlocalStorageを使ってデータを保存することができます。 簡単なサンプルは以下のページに載っています。 Options http://code.google.com/chrome/extensions/options.html コンテントスクリプト以外のエクステンション要素からはJavascr…

extension内のパーツやextension間で通信するためのAPI

extensionには様々なパーツがありますが。 それぞれのパーツ間でメッセージングを行うAPIが用意されています。 Message Passing http://code.google.com/chrome/extensions/messaging.html Communication between extensions and their content scripts work…

content scriptからクロスサイトなXHRするプロトタイプ

なおこのプロトタイプは完成しません。 AutoPagerize for Chromeのソースを参考にcontentスクリプトからクロスサイトなxhrをしてみた。AutoPagerize for Chrome http://d.hatena.ne.jp/swdyh/20090525/1243232130 あと個人的な都合でGM_xmlHttpRequestのラッ…

extensionのcontent scriptで出来ないこと

http://code.google.com/chrome/extensions/content_scripts.html However, content scripts have some limitations. They cannot:Use chrome.* APIs (except for parts of chrome.extension) Use variables or functions defined by their extension's page…