Reputation: 469
Basically, I want to make a chrome extension that reads the URL bar upon the user hitting enter and redirect them based on the contents.
Anyone know how to do this?
I'm reading through the API but can't find a method to read the URL on enter?
Upvotes: 0
Views: 316
Reputation: 924
You are looking for the WebRequest API. You can intercept changes based on all possible request resolve events in any window. See the documentation for details, but should be all you need.
Upvotes: 1