openDatabase() chrome vivaldi Stylish

  • located at /Users/ruili/Library/Application Support/Vivaldi/Default/databases/
  • Databases.db contains all the db created or opened by using openDatabase()
sqlite3 Databases.db
SQLite version 3.7.17 2013-05-20 00:56:22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .tables
Databases  meta
sqlite> select * from Databases;
1|chrome-extension_fjnbnpbmkenffdnngjfgmeleoegfcffe_0|stylish|Stylish Styles|5242880
4|chrome-extension_dhdgffkkebhmkfjojejmpbldmpobfkfo_0|tmStorage|TM Storage|31457280
10|https_passport.weibo.com_0|ufp||1024
11|https_bbs.fudan.edu.cn_0|PersistJS Test|Persistent database test.|204800
12|https_bbs.fudan.edu.cn_0|https___bbs_fudan_edu_cn_bbs|Persistent storage for https___bbs_fudan_edu_cn_bbs|204800

for example, the Stylish extension create or open a database named stylish in storage-websql.js file
the steps to find the db is

  1. check if there is a stylish name in Databases.db under databases\ folder
  2. read the db located at ./origin/id as specified in the record

What I find is that the styles doesn't store in the db, for no matter how many styles I specified, the size of the db file is always 4096 bytes and the modification time of the file is always the creation time.

I find the the storage file is actually located under IndexedDB/chrome-extension_fjnbnpbmkenffdnngjfgmeleoegfcffe_0 folder
the file with suffix .log is the file you want

I have answered the question at https://forum.userstyles.org/discussion/31168/where-are-user-styles-stored-on-chrome#latest

posted @ 2016-09-13 19:28  乌祁班岚图  阅读(253)  评论(0编辑  收藏  举报