Sorry my message got cut off. Here's the last snippet:
var gm4test = {
...
getValue: async function(name, defval) {
var rt;
if (typeof GM_getValue === 'function') { // GM3 etc
rt = GM_getValue(name, defval);
} else if (typeof GM === 'object' && typeof GM.setValue ===
'function') { // GM4
rt = rt = await GM.getValue(name, defval);
}
return rt;
},
...
}
--
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.