FlyerTalk Forums - View Single Post - ITA-Matrix-PowerTools - Userscript for Orbitz/DL/UA/AA/BA/CZ/IB/LA/LH/LX/TK
Old Nov 11, 2014, 9:21 am
  #17  
Steppo
 
Join Date: Jun 2013
Location: Somewhere between if and else
Posts: 142
Originally Posted by kulin
some advise:
don't specify default value for the parameters of functions liked function x(y=0), maybe it needs very high version of js-engine to run, it did not work here to me.
the other problem here to me is "itaLocale undefined", I can see it is a global variable in the itinerary page, but I don't know why it can't be located in the script here to me, maybe lack of privilege?
Exactly... Thank you for this advise.

I created a fork which will fix all these problems:
..... we merged it, please use the link from wiki.

There is one major "problem" with the cabin.
The script has to choose and is of course sometimes not correct. At the moment we are using the lowest available cabin in the itin. Which is of course not the best Idea. Taking the highest one would lead to exact the same problem. Choosing the most frequent one is also a bad idea.
We should pull it from the fare what is impossible.
The only way to solve this would be a dropdown forcing the user to choose.

Last edited by Steppo; Nov 11, 2014 at 11:20 am Reason: merged....
Steppo is offline