Editing Location bar tricks
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 87: | Line 87: | ||
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. | 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 | |
+ | 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 | ||
+ | <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 [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]] |
Learn more about Contributing to the wiki.