I have a query about communication between two different userscripts running on different pages.
If you have Script A running on Page A, and a link on Page A opens Page B that runs Script B, is there any way for Script A to send data to Script B?
Let's say for example that Page A has a link. If you open the link, Page B opens. Let's say Script A running on Page A has a button. If you click the button, then when Page B opens Script B makes the background a different colour.
How can Script B receive data from Script A assuming that each userscript is running on a separate page from each other?
My first idea was to add little codes to the URL, that doesn't affect the URL location but enables the next script to see data.
(e.g. normally www.something.com/pageB/would become www.something.com/pageB/&code or something similar. I was wondering if there's a safer way to do it.