Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect occurs after chrome shows website not found #11

Open
itaditya opened this issue Jan 5, 2018 · 3 comments
Open

Redirect occurs after chrome shows website not found #11

itaditya opened this issue Jan 5, 2018 · 3 comments

Comments

@itaditya
Copy link

itaditya commented Jan 5, 2018

It certainly decreases the productivity levels when I first have to wait for chrome to try to reach the website and because it doesn't exist then show me the error page and then takes me to my desired site.

Plus as mentioned in #4 , if I type g then it will show me github.com or other frequently visited site.
If it's github then I don't need the extension. If not github.com then I'll need to clear the predicted text add a "/" and then wait.

Can anything be done to shorten the time waiting ?

@cherrry
Copy link

cherrry commented May 6, 2018

intercept all requests with chrome.webRequest.onBeforeRequest would be much faster than doing redirection upon chrome.tabs.onUpdated, but that requires <all_urls> permission.

@itaditya
Copy link
Author

itaditya commented May 6, 2018

I fell in the rabbit hole and discovered chrome.omnibox . I guess that can be used to display custom results. without ever hijacking web requests

@itaditya
Copy link
Author

itaditya commented May 6, 2018

I have started working on my own extension using the omnibox api, while digging I also found declarativeWebRequest which is not stable but will be hell of a lot faster because we declare only rules and everything will happen natively in the browser without us ever having to do anything on the javascript engine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants