Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7536997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:43:41+00:00 2026-05-30T06:43:41+00:00

In a Google Chrome extension, I want to process a custom string in the

  • 0

In a Google Chrome extension, I want to process a custom string in the same or a similar way to how the Omnibox works.

I think this is easiest to demonstrate with some examples:

http://example.org  => We should open the website
example.org         => We should also open the website
example.co.uk/test  => We should also open the website
example             => We should open the default search engine for that term
wp Test             => Given that 'wp' is a shortcut for Wikipedia, we should  
                       open the wiki page for 'Test'

Basically what I want to achieve by this is to never have to use the Omnibox again and instead use the VIM-inspired keyboard-only navigation provided by vimium with the additional benefit of allowing me to navigate to custom pages.

There are now actually two question to it:

  • To what degree does the Chrome API or nasty workarounds allow me to avoid and replicate the logic needed to parse the input? Can I take advantage of, e.g., an existing list of top-level domains or available URL schemes? Is there even a way to let Chrome do all the work? After all, this stuff needs to be somewhere inside Chrome already, as the Omnibox uses the same algorithm.

  • If I am unlucky and I have to implement the logic by myself, how can I get necessary information like the configured default search engine or the available shortcuts and their associated URL format strings?

To clarify: I am not interested in implementations of the parsing algorithm itself. If the necessary information is available, implementing the algorithm shouldn’t be too hard, after all.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:43:43+00:00Added an answer on May 30, 2026 at 6:43 am

    I ended up completely writing this from scratch: https://github.com/niklasb/vimium/blob/fuzzy/lib/completion.js

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a very specific question for a Google Chrome extension. http://www.meebo.com/mobile/ This page
Google chrome doesn't behave the same as other browsers when encountering this nugget: <?php
I want to write an extension for Google chrome that detects snippets of source
I am trying to write an extension to google chrome and I want to
So I wrote a Google Chrome extension. All I want to do is provide
I want to save content of page in mongodb using google chrome extension. What
I want to get the same results that Google Chrome get on his Network
i want to make a chrome extension on google reader and i found a
I want to write a Google Chrome Extension that can take information from a
I try to write a dictionary extension for Google Chrome. Now, I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.