可以将油脂猴子脚本编译为XPI以保存文件吗? [英] Compile greasemonkey script into xpi to save file?
问题描述
如果我将油脂猴子脚本编译为xpi,那么该xpi可以访问本地文件以从硬盘读取和写入文件吗?
if i compile a greasemonkey script into an xpi, then can that xpi access to local file to read and write files from hard disk???
问题2,如果我使用GM的SetValue API保存数据,那么我是否需要删除值或重新启动FireFox浏览器时会自动删除该值?
question 2, if i save data using SetValue API of GM then do i need to del the value or does it gets deleted automatically when i restart the FireFox browser??
推荐答案
如果我将油脂猴子脚本编译为xpi,那么该xpi可以访问本地文件以从硬盘读取和写入文件吗?
if i compile a greasemonkey script into an xpi, then can that xpi access to local file to read and write files from hard disk???
是可以的,因为它是firefox扩展名,但这意味着您需要解压缩xpi文件,并修改代码以访问文件系统.
yes it could, because it is then a firefox extension, but it would mean that you need to decompress the xpi file, and modify the code to access the file system.
问题2,如果我使用GM的SetValue API保存数据,那么我是否需要删除值或重新启动FireFox浏览器时会自动删除该值?
question 2, if i save data using SetValue API of GM then do i need to del the value or does it gets deleted automatically when i restart the FireFox browser??
如果您创建一个值,则无论浏览器是否重启,它都会一直保留到删除该值为止.
If you create a value then it will remain until you delete the value, regardless of browser restarts.
这篇关于可以将油脂猴子脚本编译为XPI以保存文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!