Chromium Code Reviews| Index: nuke_safari.sh |
| diff --git a/nuke_safari.sh b/nuke_safari.sh |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..0beeb62c7bda478a47f7a68706331a0fb079c628 |
| --- /dev/null |
| +++ b/nuke_safari.sh |
| @@ -0,0 +1,70 @@ |
| +#!/bin/bash |
|
ahe
2016/04/08 12:56:53
I'm not sure if this should be a script like this,
|
| + |
| +lsof -t /Applications/Safari.app/Contents/MacOS/Safari | xargs kill |
| +pkill -HUP com.apple.Safari |
| + |
| +rm -rf ~/Library/Caches/com.apple.Safari ~/Library/Safari ~/Library/Saved\ Application\ State/com.apple.Safari.savedState ~/Library/Caches/Metadata/Safari |
| + |
| +defaults delete com.apple.safari |
| + |
| +defaults write com.apple.safari '{ |
| + DefaultBrowserPromptingState2 = 2; |
| + StartPageViewControllerMode = 0; |
| + TestDriveOriginBrowser = 1; |
| + TestDriveUserDecision = 2; |
| + TestDriveState = 3; |
| + AlwaysRestoreSessionAtLaunch = 0; |
| + NewTabBehavior = 1; |
| + NewWindowBehavior = 1; |
| + LastSafariVersionWithWelcomePage = "9.0"; |
| + OpenNewTabsInFront = 0; |
| + TabCreationPolicy = 0; |
| + |
| + IncludeDevelopMenu = 1; |
| + WebKitDeveloperExtrasEnabledPreferenceKey = 1; |
| + "com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled" = 1; |
| + |
| + AutoFillCreditCardData = 0; |
| + AutoFillMiscellaneousForms = 0; |
| + AutoFillPasswords = 0; |
| + |
| + SuppressSearchSuggestions = 1; |
| + |
| + PreloadTopHit = 0; |
| + ShowFavoritesUnderSmartSearchField = 0; |
| + WebsiteSpecificSearchEnabled = 0; |
| + |
| + WarnAboutFraudulentWebsites = 0; |
| + |
| + |
| + WebKitJavaScriptEnabled = 1; |
| + "com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaScriptEnabled" = 1; |
| + |
| + WebKitJavaScriptCanOpenWindowsAutomatically = 1; |
| + "com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaScriptCanOpenWindowsAutomatically" = 1; |
| + |
| + "com.apple.Safari.ContentPageGroupIdentifier.WebKit2WebGLEnabled" = 1; |
| + WebGLDefaultLoadPolicy = WebGLPolicyAllowNoSecurityRestrictions; |
| + |
| + |
| + "com.apple.Safari.ContentPageGroupIdentifier.WebKit2PluginsEnabled" = 0; |
| + |
| + BlockStoragePolicy = 1; |
| + WebKitStorageBlockingPolicy = 0; |
| + "com.apple.Safari.ContentPageGroupIdentifier.WebKit2StorageBlockingPolicy" = 0; |
| + |
| + |
| + SafariGeolocationPermissionPolicy = 0; |
| + |
| + CanPromptForPushNotifications = 0; |
| + |
| + InstallExtensionUpdatesAutomatically = 0; |
| + |
| + ShowFullURLInSmartSearchField = 1; |
| + |
| + "com.apple.Safari.ContentPageGroupIdentifier.WebKit2PlugInSnapshottingEnabled" = 0; |
| + |
| + |
| +}' |
| + |
| +# OpenPrivateWindowWhenNotRestoringSessionAtLaunch = 1; |