I put all my old script in
(async function() { ... })();
from the "// ==/UserScript==" line to the end of the script.
Before that I tried to make each GM.getValue as separate async function but
is not working because even if I'm declaring a variable with "var" outside
the async function (not with "let"), I can't change the variable content
inside the async function.
To convert my old script I changed everywhere "GM_" with "await GM." and I
put everything in the async function.
On Wednesday, November 15, 2017 at 4:43:09 PM UTC+1, Anthony Lieuallen
wrote:
>
> On Wed, Nov 15, 2017 at 10:41 AM, József Vajda <[email protected]
> <javascript:>> wrote:
>
>> I fixed it :)
>> Sorry for disturbing you with this :(
>>
>
> Care to share the solution?
>
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.