Location bar tricks
(tidy and add links) |
|||
Line 2: | Line 2: | ||
== Default search engine == | == Default search engine == | ||
+ | |||
Just like with Firefox you can use the browser location bar to search Google. By default, if you enter more than one word in the location bar you will be taken to the Google's first search result (i.e. 'I Feel Lucky'). To see the normal search results instead do the following: | Just like with Firefox you can use the browser location bar to search Google. By default, if you enter more than one word in the location bar you will be taken to the Google's first search result (i.e. 'I Feel Lucky'). To see the normal search results instead do the following: | ||
Line 18: | Line 19: | ||
You can replace Google with your preferred search engine. | You can replace Google with your preferred search engine. | ||
- | == | + | == Yubnub shortcuts == |
+ | |||
If instead you change the default search engine from Google's I'm Feeling Lucky to Yubnub, you can search almost any web site directly from the address line. So, you can for example do the following searches: | If instead you change the default search engine from Google's I'm Feeling Lucky to Yubnub, you can search almost any web site directly from the address line. So, you can for example do the following searches: | ||
Line 45: | Line 47: | ||
== OpenDNS method == | == OpenDNS method == | ||
+ | |||
heeeeeey party people..... OpenDNS is free, but you have to register and make your IP address or network recognized. (This is done only once if you have a static IP or use the dynamic IP software of OpenDNS.) | heeeeeey party people..... OpenDNS is free, but you have to register and make your IP address or network recognized. (This is done only once if you have a static IP or use the dynamic IP software of OpenDNS.) | ||
Line 54: | Line 57: | ||
# Make microb work with the shortcuts. Follow the instructions on this page: http://www.opendns.com/support/article/123 . | # Make microb work with the shortcuts. Follow the instructions on this page: http://www.opendns.com/support/article/123 . | ||
- | == | + | == On-device configureable shortcuts == |
- | + | # Download [http://talk.maemo.org/attachment.php?attachmentid=7533&d=1267167539 this file] to your [[Nokia N900|N900]], prefereably to the Documents folder. | |
- | # Download [http://talk.maemo.org/attachment.php?attachmentid=7533&d=1267167539 this file] to your N900, prefereably to the Documents folder. | + | # In [[terminal|X terminal]] enter the command <pre>mv MyDocs/.documents/search.txt search.htm</pred> |
- | # In | + | |
#*NB If you saved to a folder other than Documents from the webbrowser MyDocs/.documents will need to be changed to the requisite path | #*NB If you saved to a folder other than Documents from the webbrowser MyDocs/.documents will need to be changed to the requisite path | ||
- | # Use the method outlined above to change the search URL to < | + | # Use the method outlined above to change the search URL to <pre>file:///home/user/search.htm?</pre> |
- | + | ||
Now when you type a search into the address bar you can choose the following search engines by prefixing them with the letters lited below: | Now when you type a search into the address bar you can choose the following search engines by prefixing them with the letters lited below: | ||
Line 74: | Line 75: | ||
*urban - urbandictionary.com | *urban - urbandictionary.com | ||
- | (eg ebay n900 in the address bar will seach ebay.co.uk for an N900, | + | (eg. ebay n900 in the address bar will seach ebay.co.uk for an N900, whereas wiki n900 will search wikpedia) |
- | You can add to or edit the choice of engines by editing search.htm using pygtkeditor or other text editor. Editing the line | + | You can add to or edit the choice of engines by editing <code>search.htm</code> using pygtkeditor or other text editor. Editing the line |
urls['go']='http://www.google.com/search?q=%s'; | urls['go']='http://www.google.com/search?q=%s'; | ||
to read | to read | ||
urls['g']='http://www.google.co.uk/search?q=%s'; | urls['g']='http://www.google.co.uk/search?q=%s'; | ||
- | which means that instead of typing < | + | which means that instead of typing <code>go foo</code> into the address bar to get a search for foo from the full-fat google.com one would type <code>g foo</code> to search google.co.uk. |
A further change possible is to add the lines | A further change possible is to add the lines | ||
Line 89: | Line 90: | ||
document.location.replace(redirUrl); | document.location.replace(redirUrl); | ||
This allows you to replicate the bookmarkable search function for UK train journeys on the excellent [traintimes.org.uk] by typing, for instance | This allows you to replicate the bookmarkable search function for UK train journeys on the excellent [traintimes.org.uk] by typing, for instance | ||
- | < | + | <code>tt hitchin/york/1000/tomorrow</code> to search for tomorrow's departures from Hitchin to York at around 1000. |
- | The second line of code needs to be added as else between the script and the browser / is replaced with %2F which confuses the website. For more on how to use this look at the [traintimes.org.uk] frontpage; you can click the iCal links from its search results to get the times entered into your | + | The second line of code needs to be added as else between the script and the browser / is replaced with %2F which confuses the website. For more on how to use this look at the [http://traintimes.org.uk/] frontpage; you can click the iCal links from its search results to get the times entered into your N900 calendar. |
- | + | ||
[[Category:Web]] | [[Category:Web]] | ||
[[Category:Power users]] | [[Category:Power users]] |
Revision as of 12:23, 24 June 2010
This article outlines some methods for improving the functionality of the location bar in the browser.
Contents |
Default search engine
Just like with Firefox you can use the browser location bar to search Google. By default, if you enter more than one word in the location bar you will be taken to the Google's first search result (i.e. 'I Feel Lucky'). To see the normal search results instead do the following:
- Type about:config in the location bar.
- Type in 'Name' field (case sensitive):
keyword.URL
- Type or paste in the 'Value' field:
http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=
- Tap 'Set preference'
- Restart the browser
Alternatively, use this link (one line):
about:config?prefname=keyword.URL&prefvalue=http%3A%2F%2Fwww.google.com%2Fsearch%3Fie%3DUTF-8%26oe%3DUTF-8%26sourceid%3Dnavclient%26gfns%3D1%26q%3D
This will make the change in about:config.
You can replace Google with your preferred search engine.
Yubnub shortcuts
If instead you change the default search engine from Google's I'm Feeling Lucky to Yubnub, you can search almost any web site directly from the address line. So, you can for example do the following searches:
- g <search>: Searches Google for <search>.
- am <search>: Searches Amazon for <search>.
- wi <search>: Searches Wikipedia for <search>.
- imdb <search>: Searches IMDb for <search>.
See the list of the common shortcuts for more.
This functionality is similar to that of Opera and Firefox, but with Yubnub, you don't need to tweak it. The shortcuts are already there. (Though this has the disadvantage that you can't tweak them to your preferences. For example, I usually use w for Wikipedia; but it is reserved for weather.com on Yubnub.)
To enable:
- Type about:config in the location bar.
- Type in 'Name' field (case sensitive):
keyword.URL
- Type or paste in the 'Value' field:
http://yubnub.org/parser/parse?command=
- Tap 'Set preference'
- Restart the browser2. Enter "keyword.URL" into the Name box at the top (above Set Preference).
Alternatively, use this link (one line):
about:config?prefname=keyword.URL&prefvalue=http%3A%2F%2Fyubnub.org/parser/parse%3fcommand%3d
Also, if you use Speed Dial, your browsing experience will be much better. (Remember to use iamthewalrus' and Benson's version, not mine. That one is much improved.)
OpenDNS method
heeeeeey party people..... OpenDNS is free, but you have to register and make your IP address or network recognized. (This is done only once if you have a static IP or use the dynamic IP software of OpenDNS.)
Steps:
- Register your network on OpenDNS.
- Define shortcuts. Shortcuts fall into two categories:
- Site shortcuts: For example, typing m can you to mail.google.com
- Search shortcuts: For example, typing "g asd fgh" will search for asd fgh on Google, or "w asd fgh" for Wikipedia search etc. To create such a shortcut, make a search for asd and replace the part "asd" in the resulting search result page's URL to %s. So for Google, searching for asd will be: "http://www.google.com/search?rls=en&q=asd&ie=utf-8&oe=utf-8" and as a shortcut URL one needs to give "http://www.google.com/search?rls=en&q=%s&ie=utf-8&oe=utf-8".
- Make microb work with the shortcuts. Follow the instructions on this page: http://www.opendns.com/support/article/123 .
On-device configureable shortcuts
- Download this file to your N900, prefereably to the Documents folder.
- In X terminal enter the command
mv MyDocs/.documents/search.txt search.htm</pred>
Now when you type a search into the address bar you can choose the following search engines by prefixing them with the letters lited below:
- go - regular Google search (not mobile!)
- wiki - wikipedia
- map - Google Maps UK
- ebay - eBay UK
- php - PHP manual
- mysql - MySQL manual
- acronym - acronymfinder.com
- urban - urbandictionary.com
(eg. ebay n900 in the address bar will seach ebay.co.uk for an N900, whereas wiki n900 will search wikpedia)
You can add to or edit the choice of engines by editing search.htm
using pygtkeditor or other text editor. Editing the line
urls['go']='http://www.google.com/search?q=%s';
to read
urls['g']='http://www.google.co.uk/search?q=%s';
which means that instead of typing go foo
into the address bar to get a search for foo from the full-fat google.com one would type g foo
to search google.co.uk.
A further change possible is to add the lines
urls['tt']='http://traintimes.org.uk/%s';
into the search engine list block of code and
redirUrl = redirUrl.replace(/%2F/g,"\/");
before the line
document.location.replace(redirUrl);
This allows you to replicate the bookmarkable search function for UK train journeys on the excellent [traintimes.org.uk] by typing, for instance
tt hitchin/york/1000/tomorrow
to search for tomorrow's departures from Hitchin to York at around 1000.
The second line of code needs to be added as else between the script and the browser / is replaced with %2F which confuses the website. For more on how to use this look at the [1] frontpage; you can click the iCal links from its search results to get the times entered into your N900 calendar.