MediaWiki talk:Common.js

Shared Anime-Common js
Since Wikia has updated to MW1.19 now, shouldn't we now be using ? I know it won't make a big difference as such but why not?—
 * No. This stuff isn't available through modules. And for absolute urls there isn't much advantage. ~ Daniel Friesen (DanTMan, Nadir Seen Fire) (Local Talk &#8285; Animanga Talk) 08:21, November 4, 2012 (UTC)
 * importScriptURI is part of the mediawiki.legacy.wikibits module, as implied by the "legacy" part, that's going to disappear eventually. mw.loader is part of the mediawiki module so it isn't going anywhere.
 * You could use $.getScript instead as well.—


 * It actually sounds more like importScriptURI may stay around longer than wikibits. In any case wikibits will stay around longer than js wg globals will. And importScriptPage style functions don't exist in any other form. ~ Daniel Friesen (DanTMan, Nadir Seen Fire) (Local Talk &#8285; Animanga Talk) 06:48, November 5, 2012 (UTC)
 * O.o
 * importScriptPage is Wikia specific. That's being replaced by importArticles. importScript currently has no replacement since the MW devs seem to be stuck in a "perfect solution is just over the hill" mindset that prevents them from actually fixing ResourceLoader, but importScriptURI is already replaced by mw.loader.load so that may go away even though importScript probably won't for a while. (importScript/importScriptPage are very simple functions, modifying them to use mw.loader internally would be easy and would completely remove the need for importScriptURI)

wikibits actually has a control flag on the server (mw:Manual:$wgIncludeLegacyJavaScript) which can be switched off to remove it. It will probably be a few years before it's off by default then a bit more before Wikia turn it off as well though. Deprecations list is here: ResourceLoader/JavaScript Deprecations.—

Bump.—
 * I don't really get coding, but if you want a reply from Dantman, I think you'll have better luck if you contact him directly, either through his talk page or through the email user feature. Omnibender - Talk - Contributions 20:37, November 14, 2012 (UTC)

How else do you think he was replying to the above messages ;)? ~ Ultimate  Supreme  03:39, January 1, 2013 (UTC)

Broken jquery
It should be noted that the jquery to make the "Add a Photo" button go to Special:Upload, instead of a popup, does not work any longer. I have no idea why it's not working, but just thought it should be brought to the attention of someone who can solve this. --SuperSajuuk Talk Page 21:23, August 12, 2014 (UTC)
 * Even though Brandon said a while back that it was completely fine; I don't see why the wikia devs seem to be determined to make it difficult for us...--~Ultimate Supreme  13:22, August 13, 2014 (UTC)
 * Haha, it's annoying when things break for no reason at all :/ --SuperSajuuk Talk Page 13:49, August 13, 2014 (UTC)

'Add a photo' override
This part was recently brought to our attention, and I have had to remove this section from the JS, as this goes against our Term of Use (for blocking Wikia functionality). We are improving how image uploading is dealt with in the new VisualEditor - for example, the VE media tool includes a customizable section to provide a notice to users, and we are continuing to work on it further. For now, however, this code remains outside our rules - sorry. Do feel free to send us feedback or concerns via Special:Contact.

Regards, Kirkburn (talk) 19:45, September 10, 2014 (UTC)