If you're looking debug your code in Apple's Safari browser there are few options available by default. However, if you open up a Terminal window and put the line in below you can get access to some nifty tools:

defaults write com.apple.safari IncludeDebugMenu 1

to change back to normal mode just exchange the 1 to 0.

Make sure you restart Safari after entering this in Terminal. On the top right of the menu bar there will appear a new menu item titled "Debug" that will let you do a host of new things including:

* Viewing DOM tree
* Snippet Editor
* Page load tester
* Use transparent windows
* Show a JavaScript Console
* Full Safari shortcuts
* Tweak supported protocols
* Increased security certificate information
* Profiling
* Importing IE and Mozilla bookmarks
* Disable RSS support

and finally my favourite:

* Change user agent. This will possibly allow you to fool some browser detection code to thinking Safari is IE or Mozilla, thus making it seem like a "safe" browser. If you are a Mac user annoyed by this in the past it might be a way to do your online banking without leaving Safari.

Latest posts

Comments

1

rick james earl jones - 23/11/09

hey what's up ? love your tricks page but I could have sworn I saw a reset to brand new 'defaults write com.apple' here.

has it been taken off or moved ? if so please send me a link. I used it last I saw it & it worked awesome on my old but free emac g4. I need to do it again bcsomehow all the permissions got wacked & I want to start all over again.

plus the color just jumped alive again, I loved it & I love your page.

thanks a gazillion

» Report offensive content

Leave a comment

You must read and type the 6 chars within 0..9 and A..F

* indicates mandatory fields.

Log in


Sign up | Forgot your password?

What's on?

  • Optus Deal

    Broadband + home phone + PlayStation®3 in a single package price!