To enable “Safari” debug menu in Mac, type the following command in Terminal (while Safari is NOT running):
defaults write com.apple.Safari IncludeDebugMenu 1
Then launch Safari, and enjoy the new Debug menu.
The debug menu has some useful options on it, so you may find this a very useful hack. If you ever wish to disable it again, just repeat the command with a “0″ instead of a “1″.]
Example you can change the User-Agent
Control of Cache / JavaScript
Show Console / Error / ETC

Advertisement