OLD | NEW |
---|---|
(Empty) | |
1 #!/bin/bash | |
ahe
2016/04/08 12:56:53
I'm not sure if this should be a script like this,
| |
2 | |
3 lsof -t /Applications/Safari.app/Contents/MacOS/Safari | xargs kill | |
4 pkill -HUP com.apple.Safari | |
5 | |
6 rm -rf ~/Library/Caches/com.apple.Safari ~/Library/Safari ~/Library/Saved\ Appli cation\ State/com.apple.Safari.savedState ~/Library/Caches/Metadata/Safari | |
7 | |
8 defaults delete com.apple.safari | |
9 | |
10 defaults write com.apple.safari '{ | |
11 DefaultBrowserPromptingState2 = 2; | |
12 StartPageViewControllerMode = 0; | |
13 TestDriveOriginBrowser = 1; | |
14 TestDriveUserDecision = 2; | |
15 TestDriveState = 3; | |
16 AlwaysRestoreSessionAtLaunch = 0; | |
17 NewTabBehavior = 1; | |
18 NewWindowBehavior = 1; | |
19 LastSafariVersionWithWelcomePage = "9.0"; | |
20 OpenNewTabsInFront = 0; | |
21 TabCreationPolicy = 0; | |
22 | |
23 IncludeDevelopMenu = 1; | |
24 WebKitDeveloperExtrasEnabledPreferenceKey = 1; | |
25 "com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled" = 1; | |
26 | |
27 AutoFillCreditCardData = 0; | |
28 AutoFillMiscellaneousForms = 0; | |
29 AutoFillPasswords = 0; | |
30 | |
31 SuppressSearchSuggestions = 1; | |
32 | |
33 PreloadTopHit = 0; | |
34 ShowFavoritesUnderSmartSearchField = 0; | |
35 WebsiteSpecificSearchEnabled = 0; | |
36 | |
37 WarnAboutFraudulentWebsites = 0; | |
38 | |
39 | |
40 WebKitJavaScriptEnabled = 1; | |
41 "com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaScriptEnabled" = 1; | |
42 | |
43 WebKitJavaScriptCanOpenWindowsAutomatically = 1; | |
44 "com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaScriptCanOpenWindows Automatically" = 1; | |
45 | |
46 "com.apple.Safari.ContentPageGroupIdentifier.WebKit2WebGLEnabled" = 1; | |
47 WebGLDefaultLoadPolicy = WebGLPolicyAllowNoSecurityRestrictions; | |
48 | |
49 | |
50 "com.apple.Safari.ContentPageGroupIdentifier.WebKit2PluginsEnabled" = 0; | |
51 | |
52 BlockStoragePolicy = 1; | |
53 WebKitStorageBlockingPolicy = 0; | |
54 "com.apple.Safari.ContentPageGroupIdentifier.WebKit2StorageBlockingPolicy" = 0; | |
55 | |
56 | |
57 SafariGeolocationPermissionPolicy = 0; | |
58 | |
59 CanPromptForPushNotifications = 0; | |
60 | |
61 InstallExtensionUpdatesAutomatically = 0; | |
62 | |
63 ShowFullURLInSmartSearchField = 1; | |
64 | |
65 "com.apple.Safari.ContentPageGroupIdentifier.WebKit2PlugInSnapshottingEnable d" = 0; | |
66 | |
67 | |
68 }' | |
69 | |
70 # OpenPrivateWindowWhenNotRestoringSessionAtLaunch = 1; | |
OLD | NEW |