Chrome / Tampermonkey userscripts在文件系统中存储在哪里?

编程入门 行业动态 更新时间:2024-10-27 12:32:46
本文介绍了Chrome / Tampermonkey userscripts在文件系统中存储在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想直接编辑用户脚本,而不是使用hokey浏览器内编辑器。

解决方案

Tampermonkey脚本非常容易通过Tampermonkey选项卡进行更新。请参阅 Tampermonkey常见问题,或者试试。

Tampermonkey脚本存储在特殊的SQLite数据库中,并且不能直接以文件格式编辑。 更新: 3.5.3630版本,Tampermonkey脚本现在使用Chrome的扩展存储进行存储。它们仍然不能以文件形式编辑,但Tampermonkey(derjanb)的开发人员已经帮助将Python脚本提取它们。

Chrome 使用者脚本 (与Chrome和Chromium浏览器不同,存储如下所示:

Windows XP: Chrome: %AppData%\\\\ Local Settings\Application Data\Google\Chrome\User Data\Default\Extensions\ Chromium:%AppData%\..\ Local Settings \ Application Data\Chromium\User Data\Default\Extensions\ Windows Vista / 7/8: Chrome:%LocalAppData%\Google\Chrome\\ \\ User Data \Default\Extensions\ Chromium:%LocalAppData%\ Chromium\User Data\Default\Extensions\ Linux: Chrome:〜/ .config / google-chrome / Default / Extensions / Chromium:〜/ .config / chromium / Default / Extensions / Mac OS X: Chrome: 〜/ Library / Application Support / Google / Chrome / Default / Extensions / Chromium:〜/ Library / Application Support / Chromium / Default / Extensions /

请参阅此答案或此Google网上论坛主题。 请注意,Chrome浏览器用户标记会自动生成Chrome扩展程序与自动生成的清单。

然而:

  • 就地编辑这些文件不起作用。 Chrome会忽略和/或覆盖更改。
  • 对于Userscripts,请按照此设置您的环境答案,以便轻松进行编辑和更新。 Tampermonkey脚本的存储方式不同。 它们被Tampermonkey存储在一个特殊的SQLite数据库中,并且不能直接编辑。 UPDATE:这是通过 version 3.5.3630 ,左右。见上文。
  • Where are Chrome/Tampermonkey userscripts stored on the filesystem?

    I want to edit user scripts directly instead of using the hokey in-browser editor.

    解决方案

    Tampermonkey scripts are super easy to update via the Tampermonkey tab. See the Tampermonkey FAQ, or just try it.

    Tampermonkey scripts were stored in a special SQLite database and were/are not directly editable in file form. Update: As of version 3.5.3630, Tampermonkey scripts are now stored using Chrome's extension storage. They are still not editable in file form, but the developer of Tampermonkey (derjanb) has helpfully made a Python script to extract them.

    Chrome Userscripts (not the same as Tampermonkey scripts) are stored as follows, for the Chrome and Chromium browsers:

    Windows XP: Chrome : %AppData%\..\Local Settings\Application Data\Google\Chrome\User Data\Default\Extensions\ Chromium: %AppData%\..\Local Settings\Application Data\Chromium\User Data\Default\Extensions\ Windows Vista/7/8: Chrome : %LocalAppData%\Google\Chrome\User Data\Default\Extensions\ Chromium: %LocalAppData%\Chromium\User Data\Default\Extensions\ Linux: Chrome : ~/.config/google-chrome/Default/Extensions/ Chromium: ~/.config/chromium/Default/Extensions/ Mac OS X: Chrome : ~/Library/Application Support/Google/Chrome/Default/Extensions/ Chromium: ~/Library/Application Support/Chromium/Default/Extensions/

    See this answer or this Google Groups thread. Note that Chrome userscripts are automatically made into Chrome extensions with an auto-generated manifest.

    However:

  • Editing these files in place will not work. Chrome ignores and/or overwrites the changes.
  • For Userscripts, set up your environment as in this answer, for easy editing and updating.
  • Tampermonkey scripts are not stored the same way. They are stored, by Tampermonkey in a special SQLite database and are not directly editable that way. UPDATE: This was changed with version 3.5.3630, or so. See above.
  • 更多推荐

    Chrome / Tampermonkey userscripts在文件系统中存储在哪里?

    本文发布于:2023-10-19 14:28:45,感谢您对本站的认可!
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:文件系统   Chrome   Tampermonkey   userscripts

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!