General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
How to handle "your browser version is outdated"?
Posted by: lczlcz
Date: December 27, 2015 02:01AM

I just started using K-meleon and feel that this is a wonderful browser.

Somehow today when I tried to log into my Chase online account, it says "your browser is outdated..." and I can't log in.

I am using 76 beta 3 and set user agent at firefox compatible.

Any way to fix this?

thanks,

Options: ReplyQuote
Re: How to handle "your browser version is outdated"?
Posted by: guenter
Date: December 27, 2015 03:59PM

Fake/Spoof what they want. Lets be cloudgy and reuse code from 1.5.4 or earlier.

IMHO it still works. I updated the strings. Red - no more.
And updated the descrition what the strings stand for.

Ingredients:

A file named UserAgents.js in ./K-Meleon/Browser/defaults/Preferences

Create file UserAgents.js, insert subsequent code and drop to the mentioned place.

/********************************************************************************************************/
// Privacy Mozilla/5.0 (Windows NT 5.1; rv:24.3) Gecko/20140105 Firefox/24.0 K-Meleon/74.0
pref("general.useragent.override", "Mozilla/5.0 (Windows NT 5.1; rv:24.3) Gecko/20140105 Firefox/38 K-Meleon/76.0");

pref("kmeleon.privacy.useragent0.name", "Firefox 38 ESR");
pref("kmeleon.privacy.useragent0.string", "Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Firefox/38.0 K-Meleon/76");
pref("kmeleon.privacy.useragent1.name", "Nightly 43");
pref("kmeleon.privacy.useragent1.string", "Build identifier: Mozilla/5.0 (Windows NT 5.1; rv:43.0) Gecko/20100101 Firefox/43.0");
pref("kmeleon.privacy.useragent2.name", "SeaMonkey 2.39");
pref("kmeleon.privacy.useragent2.string", "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:43.0.1) Gecko/20100101 SeaMonkey/2.39");

A file called useragent.kmm in ./K-Meleon/macros/

Create useragent.kmm, insert subsequent code and drop to the mentioned place.


# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ---------- User Agent --------------------------------------------------------------------------------------------
#
# Dependencies	: main.kmm ($macroPrefBranch)
# Resources	: -
# Preferences	: kmeleon.privacy.useragent[1,2,...].name
#		  kmeleon.privacy.useragent[1,2,...].string
#
# ------------------------------------------------------------------------------------------------------------------

UserAgent{
macroinfo=_("Set the specified User Agent string");
menuchecked=$ARG==""?(getpref(STRING,$_UserAgent_Active)=="")sad smileygetpref(STRING,$_UserAgent_Active)==getpref(STRING,$_UserAgent_Custom.$ARG.".string"));
$ARG==""?delpref($_UserAgent_Active):$_string=getpref(STRING,$_UserAgent_Custom.$ARG.".string");
$ARG==""?&_UserAgent_SyncMenu:&_UserAgent;
}
UserAgent_Custom{
macroinfo=_("Set a custom User Agent string");
$_string=prompt(_("Enter the User Agent string to identify K-Meleon as:"),_("Custom User Agent"),getpref(STRING,$_UserAgent_Active));
$_string==""?0:&_UserAgent;
}

UserAgent_AlertString{
macroinfo=_("View the current User Agent string");
injectJS("alert('"._("Current User Agent String:")."\\n\\n'+navigator.userAgent)");
}
UserAgent_ToggleReset{
macroinfo=_("Toggle resetting the default User Agent string when exiting");
menuchecked=getpref(BOOL,$_UserAgent_Reset);
togglepref(BOOL,$_UserAgent_Reset);
}

# ----- PRIVATE

$_UserAgent_Active="general.useragent.override";
$_UserAgent_Custom="kmeleon.privacy.useragent";
$_UserAgent_Reset=$macroPrefBranch."useragent.reset_on_exit";

_UserAgent{
$_string==""?delpref($_UserAgent_Active):setpref(STRING,$_UserAgent_Active,$_string); &_UserAgent_SyncMenu;
}
_UserAgent_SyncMenu{
$_data=getpref(STRING,$_UserAgent_Active);
setcheck("macros(UserAgent_Custom)",($_data!=""));
$_j=1; while($_j>0) &_UserAgent_SyncMenuLoop;
}
_UserAgent_SyncMenuLoop{
$__data=getpref(STRING,$_UserAgent_Custom.$_j.".string");
$__data==$_data?setcheck("macros(UserAgent_Custom)",false):0;
$_j=$__data==""?0:$_j+1;
}
$OnStartup=$OnStartup."_UserAgent_SyncMenu;";

_UserAgent_BuildMenu{
# tools menu
$_u="&User Agent";
setmenu(PrivacySecurity,popup,$_u);
setmenu($_u,macro,"Default","UserAgent()");
$_i=1; while($_i>0) &_UserAgent_BuildMenuLoop;
setmenu($_u,macro,"&Custom...",UserAgent_Custom);
setmenu($_u,macro,"&Reset To Default On Exit",UserAgent_ToggleReset);
setmenu($_u,separator,"&Reset To Default On Exit");
}
_UserAgent_BuildMenuLoop{
$__data=getpref(STRING,$_UserAgent_Custom.$_i.".name");
$__data==""?0:setmenu($_u,macro,$__data,"UserAgent(".$_i.")");
$_i=$__data==""?0:$_i+1;
}
$OnInit=$OnInit."_UserAgent_BuildMenu;";

_UserAgent_Reset{
getpref(BOOL,$_UserAgent_Reset)?delpref($_UserAgent_Active):0;
}
$OnQuit=$OnQuit."_UserAgent_Reset;";

# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."UserAgent;";


Options: ReplyQuote
Re: How to handle "your browser version is outdated"?
Posted by: lczlcz
Date: December 27, 2015 06:43PM

Hi I tried your code.
Now there is no pop up at Chase.com but I still can't log in using K-meleon.
Using Firefox 43.02 login with no problem. So there must be some more complicated set up then merely version identification.

thanks anyway.

Options: ReplyQuote
Re: How to handle "your browser version is outdated"?
Posted by: siria
Date: December 27, 2015 07:39PM

If they are happy now with your version, then it's probably just 2 independent requirements of them. Check your cookie settings? And possible other blocks, like referer etc...

Options: ReplyQuote
Re: How to handle "your browser version is outdated"?
Posted by: JamesD
Date: December 27, 2015 08:36PM

Do you get to this page? https://chaseonline.chase.com/

My bank requires Javascript enabled. Have you got js enabled?

Options: ReplyQuote
Re: How to handle "your browser version is outdated"?
Posted by: guenter
Date: December 27, 2015 11:34PM

https://www.chase.com/ requires JavaScript and Cookies like all banking sites.

Plus their idiotic minimum browser requirement. The old code only takes care of that later.

That is all I can say. Because its not my banking site.


p.s. activate via View Toolbars the Privacy Bar so that You can easily see whether JS and cookies are allowed or deactivated.



Edited 1 time(s). Last edit at 12/27/2015 11:35PM by guenter.

Options: ReplyQuote
Re: How to handle "your browser version is outdated"?
Posted by: lczlcz
Date: December 28, 2015 02:27AM

Yes, I have cookies and JS enabled, Java blocked.
Still not working. Only this chase website is not working under K-meleon.
when I put in my name and pwd, click logon with no response but other links at the webpage works fine.

Americanexpress website works fine. Maybe I'll contact their customer service tomorrow.


Quote
JamesD
Do you get to this page? https://chaseonline.chase.com/

My bank requires Javascript enabled. Have you got js enabled?



Edited 1 time(s). Last edit at 12/28/2015 02:28AM by lczlcz.

Options: ReplyQuote
Re: How to handle "your browser version is outdated"?
Posted by: siria
Date: December 28, 2015 07:45AM

No idea, but perhaps the FF-compatibility mode must be OFF if UA is faked manually...

Perhaps AdBlocking must be disabled...

Perhaps whatever is still blocked, "mybrowserinfo.com" could be used to compare the detailed results of FF and KM...

Or perhaps it's the same old gecko bug as in Seamonkey here, but have no idea which gecko-version that concerns exactly:
https://bugzilla.mozilla.org/show_bug.cgi?id=1094714

Quote
bugzilla
The steps recommended by Phillip Chee solved the problem for me, Thanks Phillip:
1. Restart SeaMonkey. DO NOT go to chase.com YET
2. Open the Error Console (in KM: Tools/Error Console)
3. Evaluate: Components.utils.import("resource://gre/modules/Webapps.jsm");
4. Try to login to chase.com


Options: ReplyQuote
Re: How to handle "your browser version is outdated"?
Posted by: guenter
Date: December 28, 2015 01:58PM

Quote
siria
... "mybrowserinfo.com"...

That pages says for my 76 b3 that JavaScript disabled when it is on. sad smiley

I'd use http://browserspy.dk/ More detailed.

p.s. Maybe try with 75.1.

IF the info from mybrowserinfo.com has any value it might be due to partly dysfunctional JS in 76 beta.



Edited 1 time(s). Last edit at 12/28/2015 05:42PM by guenter.

Options: ReplyQuote
Re: How to handle "your browser version is outdated"?
Posted by: lczlcz
Date: December 29, 2015 01:41AM

Your guess is correct, Sir.

Just downloaded 75.1 version and log into Chase website with no problem, althoug it still says your web browser is outdated.

Guess you guys need to fix something at 76beta3.

One more question, how do I move my set up at 76 beta 3 to 75? Just move all the folders under K-meleon folder? I use portable version.


Quote
guenter
Quote
siria
... "mybrowserinfo.com"...

That pages says for my 76 b3 that JavaScript disabled when it is on. sad smiley

I'd use http://browserspy.dk/ More detailed.

p.s. Maybe try with 75.1.

IF the info from mybrowserinfo.com has any value it might be due to partly dysfunctional JS in 76 beta.


Options: ReplyQuote
Re: How to handle "your browser version is outdated"?
Posted by: lczlcz
Date: December 29, 2015 01:42AM

Your guess is correct, Sir.

Just downloaded 75.1 version and log into Chase website with no problem, althoug it still says your web browser is outdated.

Guess you guys need to fix something at 76beta3.

One more question, how do I move my set up at 76 beta 3 to 75? Just move all the folders under K-meleon folder? I use portable version.

Options: ReplyQuote
Re: How to handle "your browser version is outdated"?
Posted by: guenter
Date: December 31, 2015 12:31AM

Quote
lczlcz
Your guess is correct, Sir.

Just downloaded 75.1 version and log into Chase website with no problem, althoug it still says your web browser is outdated.

Guess you guys need to fix something at 76beta3.

One more question, how do I move my set up at 76 beta 3 to 75? Just move all the folders under K-meleon folder? I use portable version.


Quote
guenter
Quote
siria
... "mybrowserinfo.com"...

That pages says for my 76 b3 that JavaScript disabled when it is on. sad smiley

I'd use http://browserspy.dk/ More detailed.

p.s. Maybe try with 75.1.

IF the info from mybrowserinfo.com has any value it might be due to partly dysfunctional JS in 76 beta.

guenter is sufficiant unless Your "Sir" is intended to be ironic.


76beta3 is a beta after all. Maybe You post in the 76beta thread that You found a glitch. Just to make sure that Dorian is informed that You encountered a problem.


Delete the new 75.1's ./Profiles folder that contains only new data and replace it with the one from the old portable You want to synck it with. That is enough unless You have done unusual customisations.

The data structure are mostly compatible since way back.smiling smiley

Options: ReplyQuote
Re: How to handle "your browser version is outdated"?
Posted by: lczlcz
Date: December 31, 2015 08:17PM

No ironic intension at all, Guenter.
I was so happy to find k-meleon browser and intended to use it as my main browser.

thank you for the suggestion and happy new year!

cheers,


Quote
guenter


guenter is sufficiant unless Your "Sir" is intended to be ironic.


76beta3 is a beta after all. Maybe You post in the 76beta thread that You found a glitch. Just to make sure that Dorian is informed that You encountered a problem.


Delete the new 75.1's ./Profiles folder that contains only new data and replace it with the one from the old portable You want to synck it with. That is enough unless You have done unusual customisations.

The data structure are mostly compatible since way back.smiling smiley


Options: ReplyQuote
Re: How to handle "your browser version is outdated"?
Posted by: burp
Date: January 13, 2016 12:46PM

most sites check only if version is greater than .....

pref("kmeleon.privacy.useragent1.name", "Firefox 99");
pref("kmeleon.privacy.useragent1.sites", "");
pref("kmeleon.privacy.useragent1.string", "Mozilla/5.0 (X11; OpenBSD amd64; rv:99.0) Gecko/20160101 Firefox/99.0");


works like a charm smiling smiley

Options: ReplyQuote


K-Meleon forum is powered by Phorum.