Forum:Is there javascript syntax for the wikia skin that Macs are known to dislike?

I'm trying to implement w:c:dev:ArchiveTool/code.js at w:c:tardis.

This tool puts a little button under the edit/leave message drop downs in the talk and user talk namespaces. When pressed, it then does other cool stuff, and you can easily archive a talk page. It's been around for a couple of years so it's fairly well-tested. And my Windows-based users aren't having a problem with it. But both myself and at least one other Mac user cannot see this button but only while in oasis/wikia. If we switch to monobook, it works well enough.

This behavior is consistent across other sites where the tool is implemented, so it does not appear to be an interaction problem with other code specific to the tardis wiki. Because another Mac user confirmed the behavior, it's not something specific to my system. And because it happens whether using Safari or Firefox, it's not browser-specific. I have been able to implement other javascript fixes, like w:c:dev:EditIntroButton/code.js which alter the edit menu in wikia, on a Mac. So it's not impossible to make changes to that drop down on a Mac, in oasis. The assumption I'm left to make is that it's something syntactical about the particular expressions being used by ArchiveTool's code which Macs using the wikia skin don't like. Oh, and here' the other weird thing: Firefox' error console (and Firebug) do not display any outright (red) errors when on pages where this thing should be implemented. It's almost as if it's not even calling the js into action. There aren't even any references I can find to it amongst the (yellow) warnings Firebug gives.

Does anyone out there know of any kind of issues like this? Any rumors, whispers — really anything — about java syntax that Macs using the oasis skin don't like? To my view, the problem has to be in the following section of code: case 'oasis': case 'wikia': pageBody = '#WikiaArticle'; pageControls = (wgNamespaceNumber == 3) ? '#WikiaUserPagesHeader > ul.wikia-menu-button > li > ul' : '#WikiaPageHeader > ul.wikia-menu-button > li > ul'; pageControlHTML = '' + msg('buttonArchiveTool') + ''; buttonPrimary = ['', '']; buttonSecondary = ['', '']; break;

Does anyone see anything about that syntax that both Safari and Firefox would reject on a Mac? CzechOut 16:53, May 22, 2011 (UTC)
 * Javascript should be compeltely OS independent, very odd  Random Time  16:54, May 22, 2011 (UTC)
 * Ish - it's slightly more complicated than that, although not really noteworthy in this case. What you'll want to do is check to make sure it's running by putting  at the top of the function that's run on page load. If you get the word "running" in console, then the script is executing, but throwing an error somewhere. If it doesn't output "running", then there's an error somewhere else that's preventing the script from executing. You should also check the script tab to make sure the script is loading correctly.