You can modify the href links in a page and insert a function passing
the URL as parameter, then the function can modify the URL and open
new tab with that URL, for example.

You want do that?

Not is needed waiting for a new tab event to arbitrarily change all
the new tabs URL, I think, you can use contentScripts.

For a normal extension modify specifics web pages is enough, if you
want modify specifics links in all web pages just need to find the URL
that you need in each page.

-v1c1ous

On Sep 2, 5:10 pm, Matias Pelenur <[email protected]> wrote:
> This probably borders dangerously close to evil, but... Is it possible
> for an extension to modify the URL for a page that hasn't loaded yet,
> *before* that URL is requested? You could certainly have a content
> script change document.location.href after the fact; and I tried
> having a background page listen for tab changes, and use updateTab to
> change the tab's URL. But in the later case Chrome still makes the URL
> request before changing the URL (and making another request).
>
> The use case I'm thinking is for an extension to automatically pre-
> populate CGI parameters when the user goes to a URL. For example,
> typing or clicking onhttp://example.com?foo=barwould actually
> requesthttp://example.com?foo=bar&extension=evil
>
> Thanks,
> matias
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to