zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    Spring AOP原理
    Spring Boot引入Oracle Jar
    Cookie
    资源验证
    HTTP各种特性
    高性能网络编程之IO和NIO阻塞分析
    Http协议基础及发展历史
    Http原理与实践
    设计模式-回顾
    http://jingyan.baidu.com/article/fcb5aff78e6a48edab4a7146.html
  • 原文地址:https://www.cnblogs.com/raybiolee/p/5869541.html
Copyright © 2011-2022 走看看