Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Safari - Change User Agent String?

Safari - Change User Agent String?
Thread Tools
Fresh-Faced Recruit
Join Date: Feb 2002
Location: Atlanta, GA
Status: Offline
Reply With Quote
Jan 8, 2003, 09:14 AM
 
I am loving Safari and would like to make it my primary browser, but cannot use it on a certain site that detects and denies any Gecko-identified browsers, which Safari shows up as (see below).

I've searched around and the KHTML browser Safari is based on, Konqueror, has a control center that lets you change the user agent string. I've tried searching through the Safari package files with the batch search in BBEdit and did find some instances of "Gecko", but changing them manually doesn't seem to help. I don't know if they need to be compiled or ...?

Please provide some help or direction, if possible - the site I'm trying to hit is for my wife's graduate studies. Right now the only way she can access it is with Netscape 4.7 running under Classic; it works, but I'd rather be running natively in OS X.

Thanks -

-Mark-

document.write("The value of navigator.appName is >" + navigator.appName + "<")The value of navigator.appName is >Netscape<

document.write("The value of navigator.appVersion is >" + navigator.appVersion + "<")The value of navigator.appVersion is >5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/48 (like Gecko) Safari/48<

document.write("The value of navigator.appCodeName is >" + navigator.appCodeName + "<")The value of navigator.appCodeName is >Mozilla<

document.write("The value of navigator.platform is >" + navigator.platform + "<")The value of navigator.platform is >MacPPC<

document.write("The value of navigator.userAgent is >" + navigator.userAgent + "<");The value of navigator.userAgent is >Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/48 (like Gecko) Safari/48<
     
mrmambo  (op)
Fresh-Faced Recruit
Join Date: Feb 2002
Location: Atlanta, GA
Status: Offline
Reply With Quote
Jan 8, 2003, 09:21 AM
 
I just answered my own question! You can enable a Debug menu by:

1. Quitting Safari
2. Typing this in a Terminal window:
defaults write com.apple.Safari IncludeDebugMenu '<true/>'
3. Restarting Safari

Under the Debug menu there is a submenu for User String with various options - AWESOME!!!!

(Plus, there's lots of other things in there, too!)


Thanks very much to another post by smeger the tip. (Topic: Activating Safari's Debug Menu)

-m-
     
Professional Poster
Join Date: Mar 2001
Location: Florida
Status: Offline
Reply With Quote
Jan 8, 2003, 09:21 AM
 
It denies Gecko browsers but the only browser your wife can use is Netscape 4.7 under classic? Ah, Netscape didn't go gecko yet then. Maybe hunt OW's files to see how they change the browser settings and bring thm over.
All Your Signature Are Belong To Us!
     
Xeo
Moderator Emeritus
Join Date: Mar 2001
Location: Austin, MN, USA
Status: Offline
Reply With Quote
Jan 8, 2003, 10:03 AM
 
Great find on that Safari debug menu. I can't figure out what the "Go to about:blank Soon" is for. It beeps 5 times then goes to about:blank. I can't figure out how that could be useful. (It is the "debug menu" but how could it help with "debugging"?)
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:57 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2