User talk:Kudpung/vector.js

Legacy JavaScript
Hello! This script has been detected as using deprecated parameters that need to be replaced with the updated version. Examples include  needs to be replaced with   or   (depending on use);  all wgGlobalVariables need to be properly gotten with  ; and   needs to be called with. Please see ResourceLoader/Legacy JavaScript for details. Thank you. —  21:39, 19 January 2015 (UTC)
 * , thank you for this. It may explain why many of the scripts, especially the ones specifically for the use of admins, aren't working any more. That's why, for example, I haven't been doingany AfD closures for months. Unfortunately, it presupposes that all Wikipedia editors and admins have an in-depth knowledge of computer programmes. We don't. If you have time and would like to do me a favour, please copy my entire .js page (I don't believe you are able to edit it yourself), make the changes, and send me acopy to paste in over the entire page. I would be extremeky grateful. Regards, --Kudpung กุดผึ้ง (talk) 12:35, 20 January 2015 (UTC)
 * It may be part of the cause (it is certainly the cause if all of the warnings in the javascript console if you open it up). I actually expect most of the user's I posted to are unable to fix it themselves (and have been helping all that asks over the last couple days here, on meta, on commons...)  Part of this was to create an index of pages that need to be fix  so that if Steward requests/Global permissions goes through I'll have a list to work from of scripts I need to fix.  I would be happy to copy your .js page and make fixes that should bring you up to date and post it back for you to apply.  I normally do so in a collapsed section right in the discussion here, would that work for sending you a copy?  Thanks! —   14:44, 20 January 2015 (UTC)
 * Okay, so I've gone through your code and cleaned it up the best I can. You were calling some scripts multiple times, I've trimmed those back to one call each (all sorted alphabetically at the top).  I've commented out some that I know are now gadgets (like various Twinkle components you were loading manually) and I've removed the call to Twinkle since that should be done through the gadget page on preferences.  I've also trimmed out the Twinkle prefs as those should be located on Special:MyPage/twinkleoptions.js.  I'll note that a lot of the scripts you are calling still have deprecated elements themselves that need to be fixed.  Below is the cleaned up code for you (I'll work on those other scripts as requests come in and time allows), which passed with no issues from JSLint and returned no errors or warnings in the console when testing.


 * Let me know if you have any specific issues and I'll look deeper for you. Happy coding! —  17:15, 20 January 2015 (UTC)