问题
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