Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

SteveC

macrumors 6502
Original poster
Jul 7, 2003
438
0
Hi everybody,

Would you please share with me how I can make Safari spoof to pretend it's IE? I'm trying to get into a site that requires IE and really need your help if you can please help me. :)

Thanks a LOT!

Steve
 
You can use the Debug menu to say it is IE 5.2 on Mac or IE6 on Windows.
 
Awesome - that's PERFECT. :)

I downloaded the script but how do I run it?

tomf87 said:
You can use the Debug menu to say it is IE 5.2 on Mac or IE6 on Windows.
 
SteveC said:
Awesome - that's PERFECT. :)

I downloaded the script but how do I run it?

You should have StuffIt Expander by default. Double-click the .sit file. It will create a new folder, "Safari Debugger". Open that folder and double-click the script iinside. Now launch Safari.

I haven't had much success getting Safari to act right on IE only sites, but good luck.
 
i have never used that debugger program, but if you search version tracker for "safari enhancer" that program adds a debug menu as well but it also gives you a user agent menu...which allows you to set what safari is recognized as OR set it to automatic which lets it be whatever the site requires, typically IE. It auto selects from windows IE, mac IE, mozilla 1.1, konqueror 3, and netscape 7.0, 6.23, 4.79.

wasnt sure if the debugger does this or not, but i havnet had trouble with BOA's site since ii got enhancer and it requires IE
 
When I run the script, it says,
"sh: line 1: defaults: command not found"



tomf87 said:
You should have StuffIt Expander by default. Double-click the .sit file. It will create a new folder, "Safari Debugger". Open that folder and double-click the script iinside. Now launch Safari.

I haven't had much success getting Safari to act right on IE only sites, but good luck.
 
SteveC said:
When I run the script, it says,
"sh: line 1: defaults: command not found"

What version of OS X are you running?

Mine worked OK:

mac:~ user$ defaults write com.apple.Safari IncludeDebugMenu 1
mac:~ user$ echo $SHELL
/bin/bash
mac:~ user$


Can you try the same commands and paste the output?
 
I tried it... mac:~ user$ defaults write com.apple.Safari IncludeDebugMenu 1

Same error.

Do I need to replace anything in there with my personal info.??

I'm running Panther with Safari 1.1

tomf87 said:
What version of OS X are you running?

Mine worked OK:

mac:~ user$ defaults write com.apple.Safari IncludeDebugMenu 1
mac:~ user$ echo $SHELL
/bin/bash
mac:~ user$


Can you try the same commands and paste the output?
 
SteveC said:
I tried it... mac:~ user$ defaults write com.apple.Safari IncludeDebugMenu 1

Same error.

Do I need to replace anything in there with my personal info.??

I'm running Panther with Safari 1.1

Specifically, I was wanting to know the output of:

echo $SHELL

It might be easier to use TinkerTool:

http://www.versiontracker.com/dyn/moreinfo/macosx/11967

It has a check box that does it for you. It also has some other neat little things you can do.
 
OK, the output is:

echo $SHELL
/bin/bash
-bash-2.05b$

By the way, is it normal to have "Last login: Tue Mar 16 19:20:19 on ttyp1
-bash-2.05b$ " in the terminal when it first opens?
 
Yes that is normal. That shows the last time you logged into Terminal and on what interface, normally ttyp1.

I do not know why that command is not working, as it works fine on my 10.3.3 install. What patch level of Panther is it?

Try this:

/usr/bin/defaults write ...

It appears your PATH isn't setup right. Here's mine:

echo $PATH
/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/mysql/bin:/usr/local/pgsql/bin:/usr/local/bin:/usr/X11R6/bin

since the defaults program is in /usr/bin, I suspect that /usr/bin is missing from yours.
 
7B85 I think? Is that what you mean?

tomf87 said:
Yes that is normal. That shows the last time you logged into Terminal and on what interface, normally ttyp1.

I do not know why that command is not working, as it works fine on my 10.3.3 install. What patch level of Panther is it?
 
SteveC said:
7B85 I think? Is that what you mean?

Sort of. I can't remember build numbers. I was referring to 10.3.0, 10.3.1, 10.3.2, or 10.3.3.

Did you try:

/usr/bin/defaults write com.apple.Safari IncludeDebugMenu 1
 
Thanks :) I tried that and here's what I get:

Last login: Tue Mar 16 19:24:19 on ttyp1
-bash-2.05b$ /usr/bin/defaults write com.apple.Safari IncludeDebugMenu 1
-bash: /usr/bin/defaults: No such file or directory
-bash-2.05b$


What now?
 
My thinking is that the /usr/bin/defaults program comes with the Developer package. I bet you don't have it installed, do you? If not, I would go with TinkerTool to make life easier for you.
 
Nope I don't have the Developer Package so maybe that's what it is.

I'll DL TinkerTool then. Are there any negative side effects of using TT?

tomf87 said:
My thinking is that the /usr/bin/defaults program comes with the Developer package. I bet you don't have it installed, do you? If not, I would go with TinkerTool to make life easier for you.
 
While you're figuring out your bin directory problem, you can try this to get the debug menu:

Open ~/Library/Preferences/com.apple.Safari.plist with TextEdit.
Find these lines:
Code:
	<key>IEFavoritesWereImported</key>
	<true/>
	<key>InputFieldWidthRatio</key>
	<real>2.504807710647583</real>
The info in the key tags are in alphabetical order so it shouldn't be too hard to find.
Now, between
Code:
	<key>IEFavoritesWereImported</key>
	<true/>
and
Code:
	<key>InputFieldWidthRatio</key>
	<real>2.504807710647583</real>
add
Code:
	<key>IncludeDebugMenu</key>
	<string>1</string>

Close Safari, save the changes you made in com.apple.Safari.plist, and then open Safari to implement your changes.
 
I've used the debug menu but I never feel right about it. You can tell the world you're using IE on Windows when you're using Safari on Mac. That doesn't quite send the right message to web designers. We want them to code it right, right? Personally, I've started to do without the products and services of companies that want to make me use IE on Windows.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.