Manipulating Google Chrome bookmarks from external program (and make Chrome aware)?

别等时光非礼了梦想. 提交于 2019-12-02 20:50:45

%LOCALAPPDATA%\Google\Chrome\User Data\Default\Bookmarks file is protected by a checksum for writing errors. Google Chrome make a backup of this file as Bookmarks.bak. So if Bookmarks file is corrupt, Google Chome uses backup file for restoring bookmarks.

Checksum operation is a bit tricky. You can look at it's source (as Chromium project is open source). It seems that Chrome does MD5 calculation on every bookmark's:

  • id
  • title
  • folder
  • url

So you can look this source code for investigate further.

But i do not recommend to do this. Google may change this format without any notice and your software suffers incompatibility problems. It would be better to write an Google Chrome extension and interoperate with your desktop software.

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