User talk:Osiris/monobook.js

Latest comment: 8 years ago by Osiris in topic Legacy JavaScript

Legacy JavaScript change

Hello! This script has been detected as using deprecated parameters that need to be replaced with the updated version. Examples include addOnloadHook( ... ) needs to be replaced with $( ... ) or $( function() { ... } ) (depending on use); all wgGlobalVariables need to be properly gotten with mw.config.get( 'wgGlobalVariable' ); and addPortletLink needs to be called with mw.util.addPortletLink. Please see MW:ResourceLoader/Legacy JavaScript for details. Thank you. — {{U|Technical 13}} (etc) 21:42, 20 January 2015 (UTC)Reply

I've fixed some of these issues, but I'm still using importScriptURI and I don't know what I need to do to replace that. Osiris (talk) 07:45, 19 February 2016 (UTC)Reply
Okay, I've replaced importScriptURI in all but one case, where it doesn't seem to work (when loading Wikipedia:AutoEd/dashes.js). Osiris (talk) 07:54, 19 February 2016 (UTC)Reply
Return to the user page of "Osiris/monobook.js".