本文介绍了Chrome / Tampermonkey userscripts在文件系统中存储在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!



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

解决方案

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



Tampermonkey脚本存储在特殊的SQLite数据库中,并且不能直接以文件格式编辑。

更新: ,Tampermonkey脚本现在使用Chrome的扩展存储进行存储。它们仍然不能以文件形式编辑,但Tampermonkey(derjanb)的开发人员已经帮助。






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 /

请参阅或。

请注意,Chrome浏览器用户标记会自动生成Chrome扩展程序与自动生成的清单。



然而:


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

  2. 对于Userscripts,请按照,以便轻松进行编辑和更新。 Tampermonkey脚本的存储方式不同。 UPDATE:这是通过,左右。见上文。


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. UPDATE: This was changed with version 3.5.3630, or so. See above.

这篇关于Chrome / Tampermonkey userscripts在文件系统中存储在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 18:40