How to change Chrome homepage with a bat file?

送分小仙女□ 提交于 2019-12-24 21:40:07

问题


I am trying to make a bat file to change the chrome's homepage.
cd %homepath%\Local Settings\Application Data\Google\Chrome\User Data\Default
But I don't know the next step.


回答1:


In Google chrome:

chrome settings are in %USERPROFILE%\Local Settings\Application Data\Google\Chrome\User Data.ChromotingConfig.json and are a little bit encrypted.

but you can do a workaround like by just pasting following javascript into the "Home Page" pref field (under your Chrome options) and it works as expected when clicking the "Home" button.

javascript:(function(){ window.location.href='http://www.google.com/';})();


来源:https://stackoverflow.com/questions/19623710/how-to-change-chrome-homepage-with-a-bat-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!