Greasemonkey脚本迁移时gm_scripts文件夹缺失,求助查找脚本位置
Hey there! As someone who's tinkered with user script migrations before, let me help you figure this out.
First off, it makes total sense you can't find the gm_scripts folder—Firefox 57+ switched to the WebExtensions API, which completely changed how Greasemonkey stores its scripts. The tutorial you're following is probably referencing an older version of Greasemonkey/Firefox, so that path is outdated now.
Here are the folders you should check first:
storage:This is the most likely candidate. Modern Firefox extensions (including newer Greasemonkey versions) use the browser's built-in storage system. Dig into this folder, and look for a subfolder named with Greasemonkey's extension ID (it'll be a string like{e4a8a97b-f2ed-450b-b12d-ee082ba24781}). Your scripts are almost certainly stored here in some form.extensions:While this folder mainly holds the extension files themselves, older Greasemonkey versions sometimes kept script data alongside the extension. It's less likely thanstorage, but worth a quick check for any Greasemonkey-related subdirectories.
A quick pro tip for you as a beginner: If you're just practicing the migration, you don't even need to hunt for folders! You can open each script directly in Greasemonkey (via its menu), copy the entire code, then create a new script in Tampermonkey and paste it in. It's way more straightforward and less error-prone than digging through system folders.
内容的提问来源于stack exchange,提问作者Danny R

