Mouseover Airport information Available in Posts for FireFox users

Status
Not open for further replies.

serfty

Veteran Member
Moderator
Joined
Nov 16, 2004
Posts
48,389
Qantas
Platinum
Virgin
Platinum
Oneworld
Emerald
For those using FireFox with the Greasemonkey Add-on, there is a script set up for FlyerTalk that will show a 'tool-tip' like pop up for airport codes within posts, profile and forum displays.

This script is call "Airports" and the FT thread with information on where to find it is here:


Will a little editing this can be used to do the same for AFF posts. (There is one issue and it's to do with 3 caps character strings in URL's)

  • Right Click on the GreaseMonkey Icon or Select Tools, then Greasemonkey,
  • Select "Manage user scripts...
  • Highlight "Airports"
  • Click the "Edit" button below.
  • Add a line below the following line:
    // @include [noparse]http://*flyertalk.com/forum*/*[/noparse]
    with the text:
    // @include [noparse]http://*frequentflyer.com.au/*[/noparse]
  • Add the following line right at the bottom:
    makeTooltip("//div[starts-with(@class, 'content')]/div"); // AFF post body
  • Save changes and exit.
That's it! Done! Now if you mouse over a 3 character airport code in an AFF post subsequently loaded, if it's listed, a red pop up will appear with details of the airport.

Test: MEL, MLB, YVR, FCO, MCO
 
Last edited:
Good find serfty!

There's a small bug though as the script does not apply to the first post. To fix, the line at the bottom should be
Code:
makeTooltip("//div[starts-with(@class, 'content')]/div"); // AFF post body
Also, you forgot to mention that the frequentflyer url should be added to the Included Pages section.
 
works for me ;)

Thanks for the tip (and the additional information Techie )
 
Elevate your business spending to first-class rewards! Sign up today with code AFF10 and process over $10,000 in business expenses within your first 30 days to unlock 10,000 Bonus PayRewards Points.
Join 30,000+ savvy business owners who:

✅ Pay suppliers who don’t accept Amex
✅ Max out credit card rewards—even on government payments
✅ Earn & transfer PayRewards Points to 10+ airline & hotel partners

Start earning today!
- Pay suppliers who don’t take Amex
- Max out credit card rewards—even on government payments
- Earn & Transfer PayRewards Points to 8+ top airline & hotel partners

AFF Supporters can remove this and all advertisements

Thanks for the the tips techie - of course, I forgot to mention on needs to "// @include" AFF :p

FWIW, I've been using this with AFF for some time - new vBulliten version necessitated some change so I decided to share while I was at it ... :D
 
One thing I've noticed is that if you have to copy'n'paste stuff from a thread elsewhere, then it also copies the airport name etc.

Expected behaviour I think.
 
One thing I've noticed is that if you have to copy'n'paste stuff from a thread elsewhere, then it also copies the airport name etc.

Expected behaviour I think.
I've noticed this as well. It can be a pain, especially if copying a xONEx routing into Mileage Monkey. I can always make the little Monkey sad and grey before refreshing to do things like this.
 
Status
Not open for further replies.

Become an AFF member!

Join Australian Frequent Flyer (AFF) for free and unlock insider tips, exclusive deals, and global meetups with 65,000+ frequent flyers.

AFF members can also access our Frequent Flyer Training courses, and upgrade to Fast-track your way to expert traveller status and unlock even more exclusive discounts!

AFF forum abbreviations

Wondering about Y, J or any of the other abbreviations used on our forum?

Check out our guide to common AFF acronyms & abbreviations.
Back
Top