ajaxChat.handleChatMessages = function(messageNodes) {
^-- Above as reference. Hey everyone, I'm trying to write a userscript here, and I can't seem to figure out for the life of me, it is day 3 and I looked at examples, researched topics. Constantly refreshed firefox over and over.
I get the feeling that when something in greasemonkey breaks, I don't know about it, I don't know if there's an error in the script. But what I do know is that it works PERFECTLY in Chrome. As that's the browser I mainly use, but when it comes down to porting the script in question I now learned that I need to adhere to the rules of FF's API system.
Which is all fine and dandy, but I want to modify a function at
ajaxChat.handleChatMessages
since the function is stored in a variable I need to update that variable with a new function. Perhaps I'm not to be using exportFunction(), but that seems like the appropriate thing. I'm really losing sleep, and my head over this. Firefox has been the most atrocious platform for me to test/develop a userscript on. Is there a way to get the javascript console to be more verbose about errors?
Thanks, if anyone could help me out that'd be much appreciated.
I've been trying to do a exportFunction(ajaxChat.handleChatMessages, unsafeWindow)
But it does not seem to be working. I'm losing it here.