-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Labels
new commandAdd a new commandAdd a new command
Description
- I made sure this command is not in the commands list
- I searched and didn't find this command in the listed issues
- I know this
defaultscommand exists - I know this command works on macOS current version
- I know this command is deprecated on macOS current version
-
Folder:
Safari (com.apple.Safari) -
Command:
# 首页, 展示背景图片和收藏, 其他全关闭
# Which will show in the new tab page
defaults write com.apple.Safari ShowBackgroundImageInFavorites 1
defaults write com.apple.Safari ShowFavorites 0
defaults write com.apple.Safari ShowFrequentlyVisitedSites 0
defaults write com.apple.Safari ShowHighlightsInFavorites 0
defaults write com.apple.Safari ShowPrivacyReportInFavorites 0
defaults write com.apple.Safari ShowReadingListInFavorites 0
defaults write com.apple.Safari HideStartPageSiriSuggestionsEmptyItemView 0
defaults write com.apple.Safari ShowSiriSuggestionsPreference 0
# 默认下载地址
# The default download path
defaults write com.apple.Safari NSNavLastRootDirectory "~/Desktop"
# 下载成功移除
# if Download success then remove records
defaults write com.apple.Safari DownloadsClearingPolicy 2
# 关闭安全打开
# disable security open
defaults write com.apple.Safari AutoOpenSafeDownloads 0
# 窗口最大化
# the safari window size (occupy all the window on my macbook air m1)
defaults write com.apple.Safari "NSWindow Frame BrowserWindowFrame" "0 0 1440 900 0 0 1440 900"
# 紧凑标签, 好看
# compact tab
defaults write com.apple.Safari ShowStandaloneTabBar 0
# 在标签页中始终显示网站标题
# always show website title
defaults write com.apple.Safari EnableNarrowTabs 0
# 始终在新标签页打开
# always open in new tab
defaults write com.apple.Safari TabCreationPolicy 2
# 打开新标签页或窗口后,使其成为活跃标签页或窗口
# open new tab/window automatically active it
defaults write com.apple.Safari OpenNewTabsInFront 1
# 关闭自动填充
# disable autofill
defaults write com.apple.Safari AutoFillCreditCardData 0
defaults write com.apple.Safari AutoFillFromAddressBook 0
defaults write com.apple.Safari AutoFillMiscellaneousForms 0
defaults write com.apple.Safari AutoFillPasswords 0
# 设置搜索引擎
# the default search engine
defaults write com.apple.Safari SearchProviderShortName Bing
# 关闭快速网站搜索
# close quick search,I dont know how to describe it
defaults write com.apple.Safari WebsiteSpecificSearchEnabled 0
# 关闭后台载入最佳结果
# I dont know how to describe it
defaults write com.apple.Safari PreloadTopHit 0
# 启用开发者菜单
# enable develop menu
defaults write com.apple.Safari IncludeDevelopMenu 1
# 清空工具栏
# remove all the items in tool bar,if it's blank, the search bar will be remove too
defaults write com.apple.Safari "NSToolbar Configuration BrowserToolbarIdentifier-v4.6" -dict-add "TB Item Identifiers" "(InputFieldsToolbarIdentifier,UnifiedTabBarToolbarIdentifier)"- Argument type (if applicable):
- Examples:
Metadata
Metadata
Assignees
Labels
new commandAdd a new commandAdd a new command