User talk:Kangaroopower

Welcome
Hi, welcome to Wikia Developers Wiki! Thanks for your edit to the User:Kangaroopower page.

Please leave a message on my talk page if I can help with anything! -- 127.0.0.1 (Talk) 04:11, July 11, 2011

No worries, go for it. 05:29,10/4/2011 05:29, October 4, 2011 (UTC)

Js debug
Hi, I read your message on Grunny's wall. I haven't read the code of your script, but I noticed you have defined the main function after the call. Since this has proven to be an issue with some other scripts, at least on Firefox, have you tried defining the function before the call to it? Cheers-- Noemo n  * talk * 20:48, March 25, 2012 (UTC)

SpoilerAlert
You may have a point there. I've asked Grunny to be sure. -- peco e s 15:10, March 29, 2012 (UTC)

BTW: This is the second time I get a double H2 for no apparent reason. What's going on here? This is weird. I'm going to leave this one. -- peco e s 15:13, March 29, 2012 (UTC)

Skin Switch Button
I'm not sure if the code I edited on there is correct or not. Please check the changes I made on SkinSwitchButton and SkinSwitchButton/code.js Sam Wang (talk) 03:32, June 24, 2012 (UTC)

Advanced Oasis UI
Hey... you do know that none of the user config options specified on the AdvancedOasisUI page actually work, right? — Mathmagician (message wall) 19:31, August 6, 2012 (UTC)


 * Thanks for the bug report. We have filed it with our technical staff and it has been noticed. :P Seriously though I think I've fixed it so clear your cache and make sure the import goes above the config. -- Kangaroopowah  ( Talk ) 20:57, August 6, 2012 (UTC)


 * Even if you put the import above the config options, when you use importScript, you're still loading the script asynchronously. You're banking on the hopes that  object will be defined before the interpreter tries to assign the   property.


 * Any approach that uses a property (config) of the AdvancedOasisUI object while loading AdvancedOasisUI/code.js asynchronously with an importScriptPage call is not going to be safe. If you're going to assign a property to an object, you *need* to know that object exists at the time you try to access its property. — Mathmagician (message wall) 23:44, August 6, 2012 (UTC)


 * You know, actually putting config like this is a pretty bad idea, not only for this. Give me a day or two and it'll be (unfortunately) a global again. -- Kangaroopowah  ( Talk ) 23:52, August 6, 2012 (UTC)

(reset indent) You don't necessarily need to have a 2nd global object just for the config options though. You could do something like this: Pecoes does something akin to this in some of his scripts, e.g. Sine. I do something similar in Railgun. — Mathmagician (message wall) 00:07, August 7, 2012 (UTC)


 * Sounds good. I've never really dealt with extends but it sounds pretty sound. btw can you come to central chat? -- Kangaroopowah  ( Talk ) 00:11, August 7, 2012 (UTC)

HideRail
Regarding your edit of HideRail/code.js: The script stopped working after your edit because  must be used inside a function. That's why I reverted it. Arkondi (talk) 09:04, August 19, 2012 (UTC)
 * Is there a special reason why you want to change the way the decision, whether the script is executed or not, is done? And why do you removed my translation?
 * is only needed, if the function should return a boolean value. If you only want to exit the function, a pure  will do.


 * I honestly have no idea how that translation was removed and it was definetly not my intention. I was editing on my iPad so I guess accidents could happen but it might have just been on of those editor mishaps that occur from time to time. As for the script execution, there's no real reason I want to change it except to save a few bytes ;). Finally, I know return false is not needed. However it is nice for people who are debugging in console to have a return statement that isn't undefined. -- Kangaroopowah  ( Talk ) 16:57, August 19, 2012 (UTC)


 * In my opinion, a specific message in the console log (as done in ) would be more useful for debugging.
 * As Lunarity said in the summary of this edit, it is more efficient to decide whether the script is executed or not, before the document is loaded completely.
 * Arkondi (talk) 17:48, August 19, 2012 (UTC)