Get value setted in GM_setValue from a custom Firefox extension

和自甴很熟 提交于 2019-12-25 00:03:36

问题


Do you know if a custom Firefox extension can read values setted calling GM_setValue() from a GraseMonkey user script?


回答1:


These values exists in about:config, (enter "greasemonkey" in the filter).

Perhaps there exists an easier way to get them, though...




回答2:


Since Greasemonkey 1.13 GM_setValue() uses an SQLite db to persist values. This DB can be accessed directly (see https://github.com/greasemonkey/greasemonkey/blob/master/modules/miscapis.js).



来源:https://stackoverflow.com/questions/8984983/get-value-setted-in-gm-setvalue-from-a-custom-firefox-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!