Closed
Description
Create this script:
// ==UserScript==
// @name FM Bug
// @match https://www.example.com/?i491
// @version 1.0
// ==/UserScript==
GM.setValue('foo', 'bar');
Close editor, then open https://www.example.com/?i491
to store the value.
Click FM toolbar button, click "FM Bug" then "Edit".
Click + JS
to create a new script, then paste the following code:
// ==UserScript==
// @name Other script
// @match https://www.example.com/?otherpage
// @version 1.0
// ==/UserScript==
document.body.innerHTML += GM_getValue('foo');
Now open https://www.example.com/?otherpage
and you'll see that the new script has foo=bar
value.
Storage should be cleared in options page when you click to create a new script.