2

I want to create custom URL shortcuts in Chrome, such that hitting 'foo' in the omni/address bar will be the equivalent of hitting 'http://bar.com'.

How can I do this?

1
  • 1
    You can create bookmark entries and for the title specify your "short" name, thus when you enter that short name in the address bar it will be displayed in suggestion box. Not exactly sure if this is what you are after. Jan 6, 2014 at 14:12

3 Answers 3

1

This could be done by adding a "search engine" even though it isn't strictly a search engine.

Enter chrome://settings/searchEngines to view the current settings. If you scroll down to the bottom of the pane there are 3 inputs for adding a search engine name, keyword and URL. If you add foo, foo, http://bar.com/ and select Done then entering foo in the omnibar will take you to http://bar.com.

2
  • Not perfect, but the best solution I've found to my needs so far. Thx. Jan 8, 2014 at 17:10
  • Yeah I agree it's not perfect but at least this way the shortcuts sync if you sign in to Chrome and sync Settings
    – andyb
    Jan 8, 2014 at 17:14
1

You could simply edit your hosts file and add a host definition like so:

1.2.3.4    foo

Where 1.2.3.4 is the IP of bar.com and foo is the shortcut you want to call it.Save the file, open any browser and type foo in the address bar, that should take you to http://1.2.3.4.

This should work for all OSs, at least for Linux, Windows and OSX (or any Unix). The only thing that changes is the location of the hosts file:

  • Linux/Unix/OSX : /etc/hosts
  • Windows >=7 : %SystemRoot%\system32\drivers\etc\hosts

For other OSs, see the list here.

0

The Quickmarks extension does something very close to this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.