manifest.json:
{
"name": "XRefresh",
"version": "0.1",
"content_scripts": [
{
"matches": ["http://*/*", "file://*/*"],
"js": ["xrefresh.js"]
}
]
}
xrefresh.js:
console.log("Yay!");
I see nothing on file://localhost/Users/.../index.html, but on this
page I see "Yay!" in the console as expected.
Google Chrome 5.0.366.0 dev, Mac OS X.
So may file:///* or file:///*/*
On Apr 8, 10:29 am, Nikita Vasilyev <alter.el...@gmail.com> wrote:
> But they did work!http://code.google.com/chrome/extensions/dev/match_patterns.html
file://localhost/Users/.../index.html doesn't work, but
file:///Users/.../index.html do work!
I consider it as a bug, and very annoying one, because by default
local html files opens on file://localhost/ , not file:///
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.