Set up Safari for development

Recently, I started doing web development. And I wrote a small script to set up safari for development. And sometimes, it's really useful!

And this is my codes.

Code

#!/bin/sh
# Set up Safari for development.
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
defaults write com.apple.Safari IncludeDevelopMenu -bool true
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
defaults write com.apple.Safari "com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled" -bool true
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true

Leave a Reply

Your email address will not be published. Required fields are marked *

nineteen + 15 =