![]() |
Using MicroB address bar for launching specific search engines (proof of concept)
I personally love to use Firefox's address bar (aka awesome bar) on my laptop to quickly launch specific search engine based on keyword I use as first query parameter. For example, when I type 'wiki maemo' it will automatically launch wikipedia search for 'maemo'. You can configure these keywords in search plugins manager in Firefox.
Anyhow, I really miss that feature on my N900, but now there is a solution which gives that exact functionality from default browser's address bar. Here's how to do it: 1) Open up MicroB and get into about:config 2) Find keyword.URL parameter, change its value to: http://mdseven.net/microbar.php?q= 3) Close all MicroB windows that are currently opened (including "starting" window with bookmarks) 4) Launch MicroB again and type 'wiki maemo' - see that wikipedia opens up, instead of regular Google search Other keywords apart from 'wiki' that are currently recognized are: go - regular Google search (not mobile!) map - Google Maps UK ebay - eBay UK php - PHP manual mysql - MySQL manual acronym - acronymfinder.com urban - urbandictionary.com Please note, that not typing any matching keyword will launch default Google Mobile search, exactly the same as the one that was in MicroB by default. That's it, really. It's pretty basic php script which I wrote in about 15 minutes as a proof of concept - and it works. :) I admit that I did it initially for my sole purpose, however I'd like to know whether you guys find it useful at all, so perhaps I could extend this further, accordingly to your feedback. What do you guys think? UPDATE: OK, looks like I'm reinventing the wheel here. Still, if anyone find this interesting, please give me a shout. |
Re: Using MicroB address bar for launching specific search engines (proof of concept)
Very interesting. Maybe a touch UK-centric... anyway to get maps keyword to default to US or Italy, for example?
Also, lots of prefs in about:config. Think there's anyway to make word reflow (CNTRL+SHFT i) be on by default? There is only one entry with the word "flow": "overflow." Sorry, a little OT, I know... |
Re: Using MicroB address bar for launching specific search engines (proof of concept)
Care to share the php file for the paranoid people :) ? Just create a symlink (ln -s microbar.php microbar.phps).
|
Re: Using MicroB address bar for launching specific search engines (proof of concept)
Quote:
How does that sound? |
Re: Using MicroB address bar for launching specific search engines (proof of concept)
Quote:
Is that what you're asking, really? :) |
Re: Using MicroB address bar for launching specific search engines (proof of concept)
Quote:
I like to have all my web things in my own hand. You never know what people will use your data for. For example: i don't sync my bookmarks with a public server but use my own. That way i know for sure that my data is in good hands. And having the code, assures that it keeps working even if you don't support it anymore. Your php file is probably pretty simple. A case statement for the keywords and a header redirect is all that is needed. I thought it would be easier to start with your code than start my own from scratch. :) |
Re: Using MicroB address bar for launching specific search engines (proof of concept)
Quote:
|
Re: Using MicroB address bar for launching specific search engines (proof of concept)
Personally, I'd like to have a copy of the code too, if only because I have my own similar prefixes that I've set up myself (I'd be shocked if any of these services include, say, a one-letter prefix for the Internet Hockey Database ;) ) and so would love to be able to do customization.
Please? Pretty please with sugar on top? ;) |
Re: Using MicroB address bar for launching specific search engines (proof of concept)
1 Attachment(s)
Quote:
|
Re: Using MicroB address bar for launching specific search engines (proof of concept)
1 Attachment(s)
Well, my webserver's upstream is being a PITA, and I was feeling especially perverse earlier today, so I ended up making a Javascript version of this concept. The advantage is that this is local to the n900, so you can still search Google even if these other services are down.
Nongeek HowTo: 1) Download the attached file to the Documents folder. (I believe this is the browser default) 2) Launch X-Terminal, and run the following (really basic) command: Code:
mv MyDocs/.documents/search.txt search.htmCode:
file:///home/user/search.htm?Hope this helps! |
| All times are GMT. The time now is 12:00. |
vBulletin® Version 3.8.8