开发者

Greasemonkey script compilation to add-on

What happens to the configuration values that are used inside 开发者_如何学Ca GM script with GM_setvalue and GM_getvalue when the script is compiled into an add-on? Where are they stored if Greasemonkey is not already installed on the computer? I know that as a GM script, you can access its values on the computer by navigating to about:config. But what if there is no GM installed after compilation to an add-on?


Values can be stored either in localStorage or preferences. In case of Arantius' I think it uses preferences - should be under the add-on's root key, as visible from this.setValue=function(prefName, value) in http://arantius.com/misc/greasemonkey/script-compiler.phps under function \$shortname_PrefManager(), but I may be wrong.

According to the source, should be under name "script" + a unique ID generated by PHP, concatenated together.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜