Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A lot of defaults command for Safari (macOS 12.6) #381

Open
4 of 5 tasks
luxuxl opened this issue Sep 8, 2024 · 0 comments
Open
4 of 5 tasks

A lot of defaults command for Safari (macOS 12.6) #381

luxuxl opened this issue Sep 8, 2024 · 0 comments
Labels
new command Add a new command

Comments

@luxuxl
Copy link

luxuxl commented Sep 8, 2024

  • 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 defaults command 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:
image
@luxuxl luxuxl added the new command Add a new command label Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new command Add a new command
Projects
None yet
Development

No branches or pull requests

1 participant