Ducati Sporting Club UK

Ducati Sporting Club UK (/msgboard.php)
-   Idle Chat (/forumdisplay.php?f=102)
-   -   [geek stuff] bookmarklet to get you train times in 3 clicks... (/showthread.php?t=22852)

Tonio600 12-Oct-2005 17:35

[geek stuff] bookmarklet to get you train times in 3 clicks...
 
I'm quite lazy and became very quickly bored with the national rail enquiries website... I wanted a quicker way to get my train times when I'm leaving the office (do I have to run or not?? :D ), so I wrote my first bookmarklet. Just create a new bookmark in your browser (or a favorite if your using Microsoft's browser) and copy-paste the following line (the whole line) in the URL property (by changing the default stations for yours, except if you're one of the 7 people doing Leatherhead -> Holmwood everyday :lol: )

Quote:

javascript:from=window.prompt('From?','leatherhead ');to=window.prompt('To?','holmwood');location.hre f='http://southwick.dyndns.org/nationalrail/?from='+from+'&to='+to

My server (southwick.dyndns.org) is just used to convert a GET query to a POST one, for your query to be compliant with the national rail enquiries website. Don't worry, there is no virus in that line. That's is it, that was the bored topic of the day which may just interrest other geeks.

NBs996 12-Oct-2005 18:38

Mon dieu, cela fonctione!
C'est brilliant!

Tonio600 12-Oct-2005 19:48

no Nick, in proper French you must say "trop cool" :lol:

NBs996 12-Oct-2005 20:09

Quote:

Originally posted by Tonio600
no Nick, in proper French you must say "trop cool" :lol:

...which is obviously what I'd say if I knew proper french!


All times are GMT +1. The time now is 12:52.

Powered by vBulletin 3.5.4 - Copyright © 2000 - 2025, Jelsoft Enterprises Ltd.
© Ducati Sporting Club UK