How to store information globally so multiple TamperMonkey/GreaseMonkey scripts can access it and is also shared across multiple domains (cross-domain)?
There is no documentation available on this in either TamperMonkey or GreaseMonkey.
I tried using GM_SuperValue
and GM_setValue/GM_getValue
scripts but the scope of these stored values are limited to the script from which it is stored as mentioned here. As a result, a value stored from script A cannot be retried from script B.
LocalStorage solves the problem is script A and B are being used on the same domain. But doesn't solve the problem for cross-domain.
Is there a way to use a shared memory for cross-domain across multiple scripts?
Update after comments:
I have a flag which I got from domain A in script X. I need to use this flag in domain B in script Y.