3

New-ish versions of Firefox (I'm currently on 3.6) have the nifty "search bookmark" feature, which allows you to create searches in the location bar with custom URLs, e.g. en.wikipedia.org/wiki/%s.

This is really great, but when trying to mange the engines in the search bar, I was dismayed at the lack of customisability there. It looks like the two search methods are entirely distinct.

Is there a way to put custom URLs in my search bar, or do I have to just hope that whatever I want is on the long but finite list of plugins at mycroft?

Thanks

UPDATE: done a bit more research, posting my own answer

mwfearnley
  • 7,423
  • Probably not. You can always post a request for the site you want or make it yourself. – random Dec 20 '10 at 01:49
  • 1
    "...which allows you to create searches in the location bar with custom URLs, e.g. en.wikipedia.org/wiki/%s." I think I am missing something: this has been natively possible in Firefox since forever? Just go to a search page, like google.com; right click on the blank search field on the page, and pick "Add a keyword for this search". I never understood why people used the search box anyway... what am I missing?? – Cerberus Dec 21 '10 at 12:25
  • 1
    +1 interesting question and to elevate you out of new user status. Now you can fix your answer. – Daniel Beck Dec 21 '10 at 12:30
  • (@Daniel: heh, thanks :) @Cerberus: yeah, you can add other search URLs, but you can't choose just any URL, it has to be defined by the XML given to you by the web site. Wikipedia probably wouldn't give me the above URL, but an actual search link. – mwfearnley Dec 23 '10 at 10:36
  • ... Why do people use the search box? Speaking for myself, I like the simplicity and predictability of the interface, and the way that the query persists after searching it. – mwfearnley Dec 23 '10 at 10:39
  • @Cerberus Matthew posted a comment addressed to you (Matthew: only the first person with an @ gets notified) – Daniel Beck Dec 23 '10 at 15:20
  • @Matthew: Okay, I see why you might want to use the search bar, though I must say I never even noticed the loss when I switched from search bar to location bar a few years ago. In the location bar, you can use any URL you want to search with a bookmark+keyword, as long as the query is visible in the location bar. If not, then you need information that the webiste or the 'net must provide. In practice, I am using bookmark searches for ALL the websites that I ever search in, except those that use search boxes in Flash; so it is perfectly possible to replace the search bar with the location bar. – Cerberus Dec 23 '10 at 16:45
  • @Matthew: some examples that I use and work:
    1. http://artflx.uchicago.edu/cgi-bin/efts/dicos/woodhouse_test.pl?keyword=%s&pagenumber=&sortorder=Keyword
    1. http://www.urbandictionary.com/define.php?term=%s 3.

    http://www.bookfinder.com/search/?author=&title=&lang=en&new_used=&destination=nl¤cy=EUR&binding=&isbn=&keywords=%s&minprice=&maxprice=&mode=advanced&st=sr&ac=qr

    The Wikipedia URL that I gave works too. Just bookmark it in FF with the keyword "w"; then type in your location bar "w darwin" and you will get the article about Darwin.

    – Cerberus Dec 23 '10 at 16:49
  • @Cerberus: Thanks for the URLs. I know I can put regular search engine style queries in the bookmarks. I just wanted to be able to customise them and use them in the search bar. – mwfearnley Dec 23 '10 at 20:53
  • @Daniel Sorry, I didn't actually know the @ sign had any magic at all.. – mwfearnley Dec 23 '10 at 20:54

2 Answers2

2

It looks like Firefox's search box (exclusively?) uses OpenSearch/MozSearch xml files, which allow some extra features over search bookmarks, e.g. autocomplete. And, unlike Opera (and Chrome?) it doesn't allow the settings to be customised.

So I guess OpenSearch plugins and search bookmarks are only superficially related, but the fact that they can both be given keywords that work in the address bar makes them appear more closely tied than they really are.

It looks like the answer is that custom URLs can't easily be created. Although if other browsers support it, I think it might be worth a feature request.

In the meantime, there are some generators listed on the OpenSearch page, that look like they allow search plugins with arbitrary URLs to be added.

mwfearnley
  • 7,423
0

What I do is install Omnibar which melds the two to a certain extent. Or, you can rely on entirely search bookmarks paired with KeywordBookmarks.com which is beneficial because they, unlike search plugins, sync with Weave.

digitxp
  • 14,556
  • Hi, thanks for the tip. But I want to keep my search box. – mwfearnley Dec 20 '10 at 03:18
  • High task, considering what Keyword Bookmarks are originally for. It's one of those things where you either change how your computer works or change how you work. – digitxp Dec 20 '10 at 12:20
  • Thinking about it now, the Keyword Bookmarks were probably just a red herring. The just seemed more closely related because they were both accessible from the address bar. – mwfearnley Dec 21 '10 at 12:22