![]() |
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. |
epsalon,
This post is not related to Tech issues on the board, I will be moving this topic to the Travel Tech forum. You might want to include more information about your script for people. |
Thanks for the script!
|
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!). |
Is there a similar script or plugin for chrome users ?
|
Originally Posted by Sandibeck
(Post 15787467)
Is there a similar script or plugin for chrome users ?
https://chrome.google.com/webstore/d...hmnpdfpdobpnkk |
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 :( |
Originally Posted by Sandibeck
(Post 15789304)
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 :( http://www.2shared.com/document/kH-QltPY/airports.html All thanks to Tintagel the developer of the script. |
Thank you, so much - script works now - GREAT ^
|
Originally Posted by Sandibeck
(Post 15789659)
Thank you, so much - script works now - GREAT ^
|
Does anyone have an script to pass via PM or email.
userscripts.org has been shutdown for nearly a month, and it doesn't look like it will be coming back:( |
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://lh3.googleusercontent.com/Nq...0-h400-e365-rw https://chrome.google.com/webstore/d...nhkkgjfcaleoo/ http://media.wandr.me/GreaseMonkey/IATA.user.js |
Works. You're the bestest ever. Thanks.
|
Nice, thanks ^^
|
Nice job, thanks!
....any way to get this working on Firefox (+ Greasemonkey)? |
| All times are GMT -6. The time now is 4:43 pm. |
This site is owned, operated, and maintained by MH Sub I, LLC dba Internet Brands. Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Designated trademarks are the property of their respective owners.