On Aug 31, 2006, at 5:40 PM, Klaus Hartl wrote:
This is an interesting read regarding user agent spoofing (see
point 9):
http://webstandardsgroup.org/features/david-storey.cfm
Interesting. Open the Web sounds kinda Grease Monkey-ish.
Corey
___
Anybody else noticed that Safari is reported as Mozilla?
script
alert(jQuery.browser.safari + \n + jQuery.browser.mozilla)
/script
mozilla/5.0 (macintosh; u; intel mac os x; en) applewebkit/418.8
(khtml, like gecko) safari/419.3
true
true
Based on the code:
var b =
Corey Jewett wrote:
I just now looked into doing so, but I think it will grow the core's
file size too much. Nice plugin though.
// As of jQuery 1.0.1[1] the relevant code is:
var b = navigator.userAgent.toLowerCase();
jQuery.browser = {
safari: /webkit/.test(b),
opera:
Corey Jewett wrote:
sa = /apple/.test(v),
Why do you prefer this over /webkit/ ?
It is fairly common to spoof or manipulate a browser's user agent
string. Sometimes it is a native feature of the browser (like Opera),
sometimes plugins are used. While for example a Safari user may want
It is fairly common to spoof or manipulate a browser's user agent
string.
Woah... that's news to me! Especially considering that Safari and
Opera combined have like 4% of the browser market. I looked at Opera 9
and it's not immediately apparent how to switch user agents (in that,
I was looking
On Aug 31, 2006, at 5:34 PM, John Resig wrote:
It is fairly common to spoof or manipulate a browser's user agent
string.
Woah... that's news to me! Especially considering that Safari and
Opera combined have like 4% of the browser market. I looked at Opera 9
and it's not immediately