How to edit Tampermonkey scripts outside of the browser

后端 未结 2 1303
南方客
南方客 2020-12-23 17:45

How do I edit Tampermonkey scripts outside of the browser? Would rather be in a good IDE instead of trying to make the edits in the browser.

I used to be able to do

2条回答
  •  悲&欢浪女
    2020-12-23 18:11

    Since Chrome extensions don't really (explanation below) have access to the filesystem Tampermonkey stores the scripts at an internal storage.

    What you can do is to allow Tampermonkey to access your local files, copy the header of your script to Tampermonkey and additionally @require the full script that is located somewhere at your hard disk.

    "don't really" means the LocalFileSystem API allows file access but the names and also the files are not necessarily mapped to the real filesystem. Furthermore LocalFileSystem seems to be deprecated now.

提交回复
热议问题