最近のdev Chromeさんのextensions
だいぶ間が空いたので(仕事のほうでFlashLiteに虐められてました…)、リハビリ的な適当更新で、最近のdev版Google ChromeのExtensions関連についてメモ書きです。
- バージョンが4に
- つまり、早ければ今月中にもstableが3になる、かもね
- WebStorage、WebDatabaseがテスト可能に
- Extensionsを有効にしていれば(起動オプションで--enable-extensionsをつければ)使用可能です
- enable-local-storage、enable-session-storage、enable-databasesでそれぞれ個別に有効にすることもできます。
- ExtensionのAutoUpdate
- Page not found - The Chromium Projects
- まだ試してないです
- メッセージなしでパッケージング
- pack-extensionする際に、 --no-message-boxをつけることでメッセージボックスを出さずに.crxを作れます
- これデフォルトにしてほしい
- タブAPIのパーミッション
- chrome.tabsを触るには、manifest.json に "permissions": [ "tabs" ] と書いておくことが必須に
- contentWindow廃止
- サイト側のグローバルオブジェクトに触れなくなった。サイト側のscriptにアクセスしたいときはscript要素をつっこむか、location.hrefでブックマークレット実行するしかない。User Scriptsも同様なので、動かなくなったScriptは多い(oAutoPagerizeとか…)
- http://groups.google.com/group/chromium-extensions/browse_frm/thread/a4ff886cfecf80ca?hl=enで議論されていたけど、全然追えてない…
oAutoPagerizeは一応修正しましたが、Chrome4ではextension版(AutoPagerize、
autopatchwork -
Google Chrome extension which automatically loads the next page and inserts into current page when you reach the end of the page. like AutoPagerize. - Google Project Hosting
)推奨です。