試用了幾天的Chrome了,感覺不錯,期待插件接口的開放...
最新的Chrome的下載地址是:
http://build.chromium.org/buildbot/snapshots/chromium-rel-xp/
今天無聊,順便看了下Chrome的文件,路徑在C:\Documents and Settings\你的用戶名\Local Settings\Application Data\Google\Chrome\User Data\Default 下面,有個History文件.
用UE打開后發(fā)現(xiàn)是SQLITE文件,于是用SQLITE打開(下載地址:http://www.sqlite.org/sqlite-3_6_2.zip)
操作方法如下:
1)用sqlite3.exe打開History文件
2)用 .tables 命令可以看到有圖中幾個表,從名字我們可以看出有下載記錄,書簽,訪問記錄等等
3)用 .output starred.txt 把輸出重定向到文件
4)用 .dump starred 把書簽表導(dǎo)出
5)接著去找下starred.txt文件就OK了.
文件大致如下,熟悉sql的可以分析下結(jié)構(gòu)(如type=2是文件夾,type=1/3是默認(rèn)的,type=0是書簽)
可以通過這個辦法對書簽進行分組管理等轉(zhuǎn)換
1
BEGIN TRANSACTION;
2
3
CREATE TABLE starred (id INTEGER PRIMARY KEY,type INTEGER NOT NULL DEFAULT 0,url_id INTEGER NOT NULL DEFAULT 0,group_id INTEGER NOT NULL DEFAULT 0,title VARCHAR,date_added INTEGER NOT NULL,visual_order INTEGER DEFAULT 0,parent_id INTEGER DEFAULT 0,date_modified INTEGER DEFAULT 0 NOT NULL);
4
5
INSERT INTO "starred" VALUES(1,1,0,1,'書簽欄',12864879599272250,0,0,12864903712413875);
6
INSERT INTO "starred" VALUES(2,3,0,2,'其他書簽',12864879599273250,0,0,12864901410029375);
7
INSERT INTO "starred" VALUES(29,0,3825,0,'Gmail',12864881762934500,1,5,0);
8
INSERT INTO "starred" VALUES(30,0,438,0,'Google Reader',12864881840111125,3,5,0);
9
INSERT INTO "starred" VALUES(31,0,3833,0,'Google Docs',12864881878751125,2,5,0);
10
INSERT INTO "starred" VALUES(32,2,0,5,'Google',12864881893109125,0,1,12864898849435375);
11
INSERT INTO "starred" VALUES(35,2,0,7,'Book',12864882141057000,3,1,12864891426123000);
12
13
CREATE INDEX starred_index ON starred(id,url_id);
14
COMMIT;
導(dǎo)入的方法也差不多,把用.import指令。熟悉sql命令的人都知道怎么弄了,用.help可以看到sqlite支持的命令
示例圖:
ps:囧...該文章用CHROME寫的..發(fā)布按鈕按了無效...復(fù)制到IE7去發(fā)布了..
ps2:最新的
Chromium數(shù)據(jù)存在:Local Settings\Application Data\Chromium\User Data\Default 下,書簽存在Bookmarks文件里面,不再存在History里面.
該文件格式如下:
1 {
2 "roots": {
3 "bookmark_bar": {
4 "children": [ {
5 "date_added": "12865419024859500",
6 "name": "Google",
7 "type": "url",
8 "url": "http://www.google.cn/"
9 } ],
10 "date_added": "0",
11 "date_modified": "12865419024859500",
12 "name": "\u4E66\u7B7E\u680F",
13 "type": "folder"
14 },
15 "other": {
16 "children": [ ],
17 "date_added": "0",
18 "date_modified": "0",
19 "name": "\u5176\u4ED6\u4E66\u7B7E",
20 "type": "folder"
21 }
22 },
23 "version": 1
24 }
25