WebKit Web Inspector in Safari

When I found out Google Chrome had WebKit Web Inspector built right in, I thought “Wow! Something I can use alongside Firebug.” But then that got me thinking about Safari.  If Apple helps develop WebKit, and Google Chrome uses WebKit, why doesn’t Apple’s Safari have this feature? Turns out it does and all you need to do to enable it is type this in a terminal:

defaults write com.apple.Safari WebKitDeveloperExtras -bool true

Once enabled, you can right-click any element on a page and the “Inspect Element” option will appear in the context menu. Don’t share this with your friends though, apparently everyone already knows about this except you and I.