New greasemonkey userscript for airport code lookup
#1
Original Poster
Join Date: Oct 2006
Location: SFO
Programs: UA gold, FB emeritus
Posts: 71
New greasemonkey userscript for airport code lookup
Hi all, I've just written a nice userscript that pops a tooltip whenever you point at a IATA airport code with the airport details.
Click here to download and install the script.
To install you will need FireFox and the GreaseMonkey extension, both available for free download.
Click here to download and install the script.
To install you will need FireFox and the GreaseMonkey extension, both available for free download.
Last edited by epsalon; Mar 2, 2007 at 12:32 am
#4




Join Date: Aug 2006
Location: AUS
Programs: DL Gold
Posts: 290
Interesting idea, but I would suggest you find an implementation method that does not create and destroy a timer every time the mousemove event is fired! Mousemove may fire for every single pixel that the mouse moves, depending on how fast the pointer is moving. That means that a move of 400px at the required speed would create and destroy 399 timers! All this just to time the hover delay before the tooltip appears?
Also, all of this is unnecessary in ACLHide():
ACLtooltip.innerHTML = ACLdefinitions;
ACLtooltip.style.left = 0 + "px";
ACLtooltip.style.top = 0 + "px";
ACLtooltip.style.width = 0 + "px";
ACLtooltip.style.height = 0 + "px";
... which matters because ACLHide is also called with every mouse move.
Just some thoughts. If you change the implementation to reflect these suggestions, please post here again, because I would like to try out the extension (it'd be nice on these forums!).
Also, all of this is unnecessary in ACLHide():
ACLtooltip.innerHTML = ACLdefinitions;
ACLtooltip.style.left = 0 + "px";
ACLtooltip.style.top = 0 + "px";
ACLtooltip.style.width = 0 + "px";
ACLtooltip.style.height = 0 + "px";
... which matters because ACLHide is also called with every mouse move.
Just some thoughts. If you change the implementation to reflect these suggestions, please post here again, because I would like to try out the extension (it'd be nice on these forums!).
#6


Join Date: Dec 2001
Location: SNA, LAX
Programs: AA EXP
Posts: 1,294
Yes. Same script but install this extionsion - Blank Canvas Script Handler
https://chrome.google.com/webstore/d...hmnpdfpdobpnkk
https://chrome.google.com/webstore/d...hmnpdfpdobpnkk
#7




Join Date: Jan 2008
Posts: 147
Yes. Same script but install this extionsion - Blank Canvas Script Handler
I installed the Blank Canvas Script Handler - that worked
Then i installed the airport lookup script - worked also
after that, i edited the script to use the flyertalk site... (add http://...)
There is no function, when i point on a Airport Code,
my system works same as without script
#8


Join Date: Dec 2001
Location: SNA, LAX
Programs: AA EXP
Posts: 1,294
Hmm - Thank you, but I dont get this to work
I installed the Blank Canvas Script Handler - that worked
Then i installed the airport lookup script - worked also
after that, i edited the script to use the flyertalk site... (add http://...)
There is no function, when i point on a Airport Code,
my system works same as without script
I installed the Blank Canvas Script Handler - that worked
Then i installed the airport lookup script - worked also
after that, i edited the script to use the flyertalk site... (add http://...)
There is no function, when i point on a Airport Code,
my system works same as without script

http://www.2shared.com/document/kH-QltPY/airports.html
All thanks to Tintagel the developer of the script.
#10


Join Date: Jul 2009
Location: Washington, DC
Programs: AA Platinum; WN Companion Pass
Posts: 130
#12
A FlyerTalk Posting Legend




Join Date: Apr 2001
Location: PSM
Posts: 69,232
Just saw this thread referenced elsewhere. I found the old source code and tweaked it a bit. You now have to select the text to get it to load rather than on hover, but it works. Also, I added in ~250 airlines it should also recognize.

https://chrome.google.com/webstore/d...nhkkgjfcaleoo/
http://media.wandr.me/GreaseMonkey/IATA.user.js
https://chrome.google.com/webstore/d...nhkkgjfcaleoo/
http://media.wandr.me/GreaseMonkey/IATA.user.js



