8000 [FireMonkey] New script inherits stored values from previously selected script · Issue #491 · erosman/support · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[FireMonkey] New script inherits stored values from previously selected script #491
Closed
@pintassilgo

Description

@pintassilgo

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0