开发者

Compile greasemonkey script into xpi to save file?

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???

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 i compile a greasemonkey script into an xpi, then can that xpi access to local file to read and write files from hard disk???

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.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜