unsupported browser warning

Asked by heather michel

when I got to verizon news page and some others I get a warning that I am not running a supported browser. They say supported browsers are the usual culprits plus firefox 3.x. I am running 3.6.13. Is there a fix?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu firefox Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
mycae (mycae) said :
#1

Their detection code is broken. They are reading something known as the User_Agent. Whilst it is possible to publish a fake user_agent, unless you have specific problems with the site, I see no reason to go to that effort.

Their (wrong) code is:

var is_moz=((agt.indexOf('mozilla/5')!=-1)&&(agt.indexOf('spoofer')==-1)&&
  (agt.indexOf('compatible')==-1)&&(agt.indexOf('opera')==-1)&&
  (agt.indexOf('webtv')==-1)&&(agt.indexOf('hotjava')==-1)&&
  ((navigator.vendor=='')||(navigator.vendor=='Mozilla')));

The correct search string should be "Mozilla/5", not "mozilla/5".

Can you help with this problem?

Provide an answer of your own, or ask heather michel for more information if necessary.

To post a message you must log in.