📅  最后修改于: 2023-12-03 15:02:49.498000             🧑  作者: Mango
在使用 Mac OS 上的 Chrome 浏览器时,可能会遇到需要隐藏全屏模式的情况,本文介绍如何在终端中使用 Shell 命令来实现。
cd ~/Library/Application\ Support/Google/Chrome/
LocalState
:touch LocalState
LocalState
文件:vim LocalState
i
进入编辑模式,输入以下内容:{"browser":{"window_placement":{"bottom":5000,"left":30,"right":1200,"top":30,"work_area_bottom":5080,"work_area_left":0,"work_area_right":1280,"work_area_top":0},"last_redirect_origin":""},"bottom_bar_hidden":true,"desktop_window_state":"normal","launcher":{"already_launched":true,"count":1,"logged_out_launch_count":0},"ntp":{"top_sites":[],"fakebox_text":"Search or type web address","shortcuts_toolbar_shown":false},"omnibox":{"shortcut":[],"zero_suggest_url":"https://clients1.google.com/tbproxy/olui"},"session":{"restore_on_startup":4,"startup_urls":["https://www.google.com/intl/en/chrome/browser/welcome.html"]},"sidebar":{"collapsed":true},"toolbar":{"bookmarks_bar_shown":false,"bookmark_manager_shown":false},"translate":{"enabled":true},"web_app":{"weburl":"https://www.google.com","webtitle":"Google"},"user_experience_metrics":{"client_id":"a15a0bc7-fb70-4001-af6b-9126e61ea6f3"},"browser_window_state":"maximized","incognito_mode":{"incognito_mode_transition_count":2,"is_incognito_mode":false}}
其中,修改以下内容即可实现隐藏全屏模式:
"browser_window_state":"maximized"
将 maximized
改为 normal
即可:
"browser_window_state":"normal"
按下 Esc
键退出编辑模式,输入 :wq
并回车保存退出。
重启 Chrome 浏览器即可看到全屏模式已经隐藏。
通过简单的 Shell 命令,在 Mac OS 上的 Chrome 浏览器中轻松实现全屏模式的隐藏,方便了程序员的日常工作。