User talk:Osiris/monobook.js
Legacy JavaScript[change source]
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}} (e • t • c)
21:42, 20 January 2015 (UTC)
- 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)- 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)
- Okay, I've replaced