javascript - <canvas> in greasemonkey -


I received the & lt; Canvas & gt; , variable canvas , but I can not seem to attract it. I can see empty canvas on the page, but it's empty.

  Warning (CTX); Ctx.fillStyle = "RGB (505050)"; Ctx.fillRect (10,10, 55,50); Warning ("Done");  

The first warning is called, [Object Canvas Rendering Contact 2D] , and I look at the "made" warning, but the canvas is still empty. There are no relevant errors in the error console.

EDIT: To make sure, I paste a script on the HTML page alone, and it worked as expected.

Canvas works fine for me in Greasemonkey Post your Greasemonkey script; And what browser are you using?


Comments