Quote Originally Posted by GAMEchief View Post
A few things:
1) yui-gen# is an automated ID given by the Yahoo API to anything with event listeners. It will not always reference what you are trying to get, since the # is semi-random and based on the order event listeners are executed. Use an identifier that isn't YUI-based.
2) the first parameter of drawImage is supposed to be an element?
3) Is your first code running from your domain, or is it running from inside a userscript? A script added from your domain to the userscript does not count as running from the userscript. Running it entirely within the userscript should remove the security error. And like I said, if you are insistent on running it from your domain, I can put just the secured code into the LGaia object, and then you could interact with the secured content through LGaia.
4) Try using an absolute path for image.src = "/path/to/tot_month.png" instead of using the dot directory navigators.
5) Why does the second script say "undefined" even though data seems to hold a value?
#1, I give no fucks about stability about it right now, I was using it to prove a point.
#2, No clue
#3, LGaia and my code are running in the same space, on the browser.
#4, Thats the exact solution I was using... You just proved me correct
#5, I executed many lines of code in one command, thats just what chrome's dev console does. I didnt print anything.