Can you clarify what you mean by this? The docs don't seem to mention query parameters at all, and say that match patterns apply to the scheme, host and path.
Mihai
Zachary “Gamer_Z.” Yaro
unread,
Aug 22, 2011, 7:55:31 PM8/22/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mihai Parparita, Chromium-extensions, Devin
You could try doing a match for http://www.google.com/* and then use JavaScript to check the parameters.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium-extensions
> > The docs suggest this by the examples
> >http://code.google.com/chrome/extensions/match_patterns.html >
> Can you clarify what you mean by this? The docs don't seem to mention query
> parameters at all, and say that match patterns apply to the scheme, host and
> path.
I also had issues with match patterns and URL parameters.
I wanted to have a context menu added to links where the path ends
with a ".pgn" extension, with or without additional URL parameters. In
other words, I wanted to match both http://example.com/file.pgn and
http://example.com/file.pgn?something=somevalue
Finally, this match pattern worked ["*://*/*.pgn", "*://*/*.pgn?*"],
however this is also matching this URL
http://example.com/not-pgn-extension.html?something=somevalue.pgn and
I did NOT want to match this (I'm only interested when the path ends
with the extension).
I settled for this, matching some unwanted URL being the lesser evil.
It looks like when they refer to "path" into the documentation they
also include the URL parameters.
Have this issue open on the subject: http://crbug.com/84024 but it has
been open for a while, a possible workaround is suggested if/when
another bug where to be fixed.