violentmonkey icon indicating copy to clipboard operation
violentmonkey copied to clipboard

`requestAnimationFrame` does not work

Open fsproede opened this issue 10 years ago • 3 comments

In https://greasyfork.org/de/scripts/4255-linkify-plus-plus?version=116878 the "function* generateRanges(node, filter)" declaration in line 113 doesn't work.

The script works with Tampermonkey. Tested in Opera and Chrome.

fsproede avatar May 14 '16 11:05 fsproede

I think the error occurs due to wrong context for requestAnimationFrame.

gera2ld avatar May 14 '16 12:05 gera2ld

Yes, I was mistaken. The line 113 error occurred in Maxthon with Violentmonkey. and in Palemoon with Greasemonkey.

In VM/Opera, VM/Chrome the error was: TypeError: Illegal invocation In Maxthon/VM the error was: Unexpected token *

fsproede avatar May 14 '16 16:05 fsproede

Maxthon does not support generators. Violentmonkey cannot help.

gera2ld avatar May 15 '16 01:05 gera2ld