-
Notifications
You must be signed in to change notification settings - Fork 0
/
safari.sh
executable file
·43 lines (29 loc) · 1.81 KB
/
safari.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "../../utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_in_purple "\n Safari\n\n"
execute "defaults write com.apple.Safari AutoOpenSafeDownloads -bool false" \
"Disable opening 'safe' files automatically"
execute "defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2BackspaceKeyNavigationEnabled -bool true" \
"Set backspace key to go to the previous page in history"
execute "defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true && \
defaults write com.apple.Safari IncludeDevelopMenu -bool true && \
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true" \
"Enable the 'Develop' menu and the 'Web Inspector'"
execute "defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false" \
"Set search type to 'Contains' instead of 'Starts With'"
execute "defaults write com.apple.Safari HomePage -string 'about:blank'" \
"Set home page to 'about:blank'"
execute "defaults write com.apple.Safari IncludeInternalDebugMenu -bool true" \
"Enable 'Debug' menu"
execute "defaults write com.apple.Safari ShowFavoritesBar -bool false" \
"Hide bookmarks bar by default"
execute "defaults write com.apple.Safari ShowFullURLInSmartSearchField -bool true" \
"Show the full URL in the address bar"
execute "defaults write com.apple.Safari SuppressSearchSuggestions -bool true && \
defaults write com.apple.Safari UniversalSearchEnabled -bool false" \
"Don’t send search queries to Apple"
execute "defaults write -g WebKitDeveloperExtras -bool true" \
"Add a context menu item for showing the 'Web Inspector' in web views"
killall "Safari" &> /dev/null