Greasemonkey script folder missing

前端 未结 2 1473
醉酒成梦
醉酒成梦 2021-01-05 07:37

I am following the instructions to transfer Greasemonkey scripts to Tampermonkey: How to Transfer All Greasemonkey userscripts to Tampermonkey on Firefox 57+. However the f

相关标签:
2条回答
  • 2021-01-05 07:53

    If you just need to export all the userscripts, there's a menu item called Export a backup... in the current version of Greasemonkey (tested with version 4.8). This exports all the scripts' folders and files into a ZIP file.

    0 讨论(0)
  • 2021-01-05 08:01

    Apparently GreaseMonkey no longer stores the user scripts in gm_scripts for Firefox. I have Firefox 58 with GreaseMonkey 4.2. I manually added some junk data to one of the user scripts, followed by comparing file sizes for any changed files in AppData, and what I discovered is that the scripts are apparently stored in an SQLite database file located at:

    C:\Users\[Username]\AppData\Roaming\Mozilla\Firefox\Profiles\[ID].default\storage\default\moz-extension+++[GUID]\idb\[Number]gyreekansoem.sqlite

    I then proceeded to open the database file using a tool called DB Browser for SQLite. Inside the database, the GreaseMonkey user scripts appear to be stored within the object_data table under the data field. The data format is unfortunately not plain text, so I am not sure how exactly to fetch the JavaScript directly from this database field.

    0 讨论(0)
提交回复
热议问题