FlyerTalk Forums

FlyerTalk Forums (https://www.flyertalk.com/forum/index.php)
-   Travel Tools (https://www.flyertalk.com/forum/travel-tools-701/)
-   -   New greasemonkey userscript for airport code lookup (https://www.flyertalk.com/forum/travel-tools/666013-new-greasemonkey-userscript-airport-code-lookup.html)

epsalon Feb 28, 2007 11:41 pm

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.

Tim at WebFlyer Mar 1, 2007 12:58 pm

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.

sepdfw Mar 1, 2007 2:25 pm

Thanks for the script!

mwarden Mar 2, 2007 9:03 am

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!).

Sandibeck Feb 2, 2011 10:36 am

Is there a similar script or plugin for chrome users ?

riteshraja Feb 2, 2011 11:29 am


Originally Posted by Sandibeck (Post 15787467)
Is there a similar script or plugin for chrome users ?

Yes. Same script but install this extionsion - Blank Canvas Script Handler

https://chrome.google.com/webstore/d...hmnpdfpdobpnkk

Sandibeck Feb 2, 2011 2:37 pm


Yes. Same script but install this extionsion - Blank Canvas Script Handler
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 :(

riteshraja Feb 2, 2011 2:50 pm


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 :(

Download this and use it as the script file.

http://www.2shared.com/document/kH-QltPY/airports.html

All thanks to Tintagel the developer of the script.

Sandibeck Feb 2, 2011 3:31 pm

Thank you, so much - script works now - GREAT ^

hawaii2midtown Mar 13, 2011 2:18 pm


Originally Posted by Sandibeck (Post 15789659)
Thank you, so much - script works now - GREAT ^

Can you guys help me out here? I downloaded all three, but can't get it to work. I also edited the two scripts to add flyertalk.com and the little FT icon shows up in Blank Canvas.

PantsFlyer Jun 1, 2014 6:23 am

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:(

sbm12 May 30, 2015 9:55 am

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

Fleck May 30, 2015 10:09 am

Works. You're the bestest ever. Thanks.

HMO Jun 2, 2015 5:45 pm

Nice, thanks ^^

Mikity Jun 3, 2015 5:39 am

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.