So I tried it, and it works perfectly in the public beta of Safari 3.0. Quit Safari, open Terminal, and type:
Launch Safari, and control-click somewhere on a web page. You will see a new Inspect Element entry in the contextual menu. Select it, and it will open up the Web Inspector and refocus to the node under your cursor.
[robg adds: You also get the inspector, automatically, if you enable the Debug menu (as has been described here before, and is repeated in another hint today).]
[robg adds: As best I can tell, support for SVG isn't mentioned on Apple's Safari pages, nor in the Welcome.rtf file in the installer files. I won't be running any other posts on the features of Safari 3, so if you can provide detail on other new stuff you may have found (beyond the obvious new menu items and the features Apple has described), please add in the comments.]
If you're a web developer, Safari's Debug Menu is a necessity. Fortunately for those of us stuck in Windows, Safari's Debug menu is still available, however, it appears you have to get your hands dirty to enable it. On a Mac, you'd open a Terminal and type:
As far as I can tell, Windows doesn't have Apple's defaults utility. Instead, you have to directly edit the plist file, where the preferences are stored and the Debug menu is enabled. This is just a plain-text XML file. So to enable the Debug menu in Safari for Windows, add the following key-value pair to c:\Documents and Settings\your username\Application Data\Apple Computer\Safari\Preferences.plist:
When Safari 3 beta was released for Windows, I immediately tried to install it
on my Windows XP machine at work. Unfortunately, the windows beta is more of an alpha, and IMHO, should never have been
released. On my installation (Dutch Windows XP), Safari was crashing when trying to show bookmarks or add a new bookmark. A quick check revealed that the Bookmarks.plist file was missing.
As I did not have my Mac available to copy a bookmarks.plist file from, I tried to manually create an empty bookmarks.plist file, taking another .plist xml file as example, but alas, this did not work. Then I discovered a file named BuiltInBookmarks.plist inside the en.lproj folder: C:\Program Files\Safari\Safari.resources\en.lproj. This file seems to be in a binary format (not XML), which may have caused my manually crafted .plist not to work. So here's how I solved the problem:
Find the file BuiltInBookmarks.plist in the C:\Program Files\Safari\Safari.resources\en.lproj\ folder
Copy the file to the Safari preferences folder: C:\Documents and Settings\your username\Application Data\Apple Computer\Safari
Rename the copied file to Bookmarks.plist and start Safari
If all went well, there will be some default bookmarks in the bookmarks toolbar. On my machine, Safari automatically imported bookmarks from Firefox and Internet Explorer, showing an errormessage 'Safari is missing some important resources' at some point. Restarting Safari solved the issue and bookmarks are now working fine.
NOTE: The imported bookmarks are not added to the Bookmarks menu. Choose Show All Bookmarks from the Bookmarks menu to view the imported bookmarks.
Sometimes you need to quit Firefox, but you don't want to lose all of those open pages and tabs. How do you quit Firefox, relaunch it, and quickly get back to where you were? I've seen some hints that suggest force quitting Firefox or using extensions. But Firefox has this feature built in -- it's just not where you expect it, so many people don't know it exists.
On the Main tab of Firefox's Preferences, change the When Firefox starts pop-up to 'Show my windows and tabs from last time.' That's it. Now if you quit Firefox with open windows and tabs, those same windows and tabs will be reloaded the next time you launch Firefox again.
[robg adds: Yes, it's a hint on a documented feature, but I ran a quick iChat poll and nobody knew about this, so I figured it was worth sharing.]
I like to have more than one Gmail account open at the same time. As you can't have more than one in the same browser, I use Firefox's ProfileManager flag to manage one profile for each Gmail account. Type in terminal:
The first time you do this, you'll create a new profile, one for each of your Gmail accounts. Launch this command each time you wish to open a new account. The Dock will display multiple Firefox icons, one for each open profile. If you wish, you can check "Remember me on this computer." As Firefox passwords are not managed by Keychain, you can store one for each of your accounts. You can also do this in Safari. Type in terminal:
Each time you launch this command, a new instance of Safari will open. You can then login to a different Gmail account in each. If Safari is not your default browser, use a gmail.webloc file instead of a URL:
I often need to restart my computer or quit Firefox to free up RAM, but don't want to lose all my open tabs. I find the following solution by accident: Force quite Firefox (Cmd-Opt-Esc), and the next time you launch Firefox it will ask you if you want to restore your session, and will load all the tabs and windows you had open before the quit. A hack, yes, but a useful feature not implemented in the normal interface!
[kirkmc adds: I'm not a regular Firefox user, and can't find any other way to do this in the help. Is there any other way?]
Safari's "AutoFill Form" (Cmd-Shift-A) function is useful for quickly entering name and address details in a web page from your "own" address card in Address Book, but it fails to complete what we call the "postcode" in Australia. Probably because it's looking for a field labelled "zip code", I assumed, and Australian web forms have this labelled "post code" or "postcode". So I wondered if this was configurable.
I found the solution it in Contents/Resources/English.lproj/ABAutoCompleteMappings.plist within the Safari.app package. To open this in the Finder, right-click (or Ctrl-click) on Safari.app in the Applications folder, select "Show Package Contents", then navigate to Contents -> Resources -> English.lproj. Make a backup of ABAutoCompleteMappings.plist (Cmd-D does this nicely), then open ABAutoCompleteMappings.plist in Property List Editor (if you have Developer Tools installed) or any text editor.
If you are using a text editor, you will find the following starting at or around line 134:
If using Property List Editor, add the extra entries to Root-> Mappings-> 11-> FieldLabels.
Save the file, restart Safari and test. This works for Mac OS X ver 10.4.9. Other versions may vary in the details.
[kirkmc adds: I haven't tested this. Obviously, this may also be useful for people in other countries, or working in other languages. Also, you may want to check some of the other keys in the file if you find that, in your country or language, you often have fields that don't auto-fill.]
As was mentioned here before, you can look up words in Dictionary if you have your dictionary already up and running. But what if you don't? Here is a quick way to call the Dictionary.app from Safari.
Bookmark a web page; say this one that you're reading right now. Then go to your bookmarks and find the URL that you have just bookmarked. Replace the text under the Bookmark title with something relevant, like Dictionary, and the URL under the Address with dict:///. Now add your modified URL into the Bookmarks Bar, at the leftmost position.
Now hit Command-1, and there is your Dictionary. Simply start typing your query.
[robg adds: Command-1 works, for those who don't know, because Safari automatically assigns Command-1 through Command-9 to your first nine non-folder bookmarks.]