Chrome / Tampermonkey userscripts在文件系统中存储在哪里? [英] Where are Chrome/Tampermonkey userscripts stored on the filesystem?

查看:1634
本文介绍了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扩展程序与自动生成的清单。



然而:


  1. 就地编辑这些文件不起作用。 Chrome会忽略和/或覆盖更改。

  2. 对于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:

  1. Editing these files in place will not work. Chrome ignores and/or overwrites the changes.
  2. For Userscripts, set up your environment as in this answer, for easy editing and updating.
  3. 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在文件系统中存储在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆