You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is the code slow in LZString or is it slow in Greasemonkey? (reference code below)
Maybe when compressed data is passed to GM.setValue() it's triggering an anti-malware security check in Edge (assuming that's actually a thing). Someone will have to strip the code down to a much simpler test case to isolate the actual issue because there's a lot of moving parts.
async function setJV (key, text) {
if (typeof text === 'object') text = JSON.stringify(text)
if (typeof text !== 'string') return null
const z = LZString.compressToUTF16(text) // eslint-disable-line no-undef
return await custom.GM.setValue(key, z)
}
I wonder why this would become an Edge specific issue.
See cvzi/Spotify-Genius-Lyrics-userscript#34
See cvzi/Youtube-Music-Genius-Lyrics-userscript#18
Here is the userscripts zip file for your reproduction.
Userscripts.zip
Note: I cannot reproduce the issue from my side as I am using MacOS
The text was updated successfully, but these errors were encountered: