chrome拡張でfile schema
chrome拡張は一応file://でも動く。
http://code.google.com/chrome/extensions/content_scripts.html
http://code.google.com/chrome/extensions/match_patterns.html
httpもfileも全部動かしたいなら、matchesとかpermissionところに、こんな感じで書けばいい。
"matches": ["\u003Call_urls\u003E"]
でもドキュメントにあるとおり、fileは自動では実行できない。
Note: Access to file URLs isn't automatic. The user must visit the extensions management page and opt in to file access for each extension that requests it.
どういうことかというと、拡張機能の設定で「ファイルの URL へのアクセスを許可する」っていうのがあるのでこれにチェックいれないと動かない。しかも最初はこのチェックボックス隠れてるので余計わからない。
そしてこれがチェックされてるかどうかを拡張側で判定する方法がわからない。