Replaced content with "→All JavaScript here will be loaded for users of the mobile site: mw.loader.using('mobile.site.styles')" Tags: Replaced Manual revert |
No edit summary |
||
| Line 1: | Line 1: | ||
/* All JavaScript here will be loaded for users of the mobile site */ | /* All JavaScript here will be loaded for users of the mobile site */ | ||
mw.loader.using('mobile.site.styles') | mw.loader.using('mobile.site.styles') | ||
function importScript(name) { | |||
/* - Disabled pending additional discussion | |||
var $notification = $('<span>').html('An attempt to load a <a>user script</a> has failed. Please see JavaScript console for more information.'); | |||
$notification.find('a').attr('href', '/w/index.php?title=' + name ); | |||
mw.notify($notification); | |||
*/ | |||
mw.log.warn('importScript is deprecated on desktop and never implemented on mobile', 'More information on https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_(users)#importScript'); | |||
} | |||
function importStylesheet(name) { | |||
mw.log.warn('importStylesheet is deprecated on desktop and never implemented on mobile', 'More information on https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_(users)#importStylesheet'); | |||
} | |||
function addPortletLink() { | |||
mw.log.warn('addPortletLink is deprecated on desktop and never implemented on mobile', 'More information on https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_(users)#addPortletLink'); | |||
} | |||
Revision as of 21:59, 15 February 2022
/* All JavaScript here will be loaded for users of the mobile site */
mw.loader.using('mobile.site.styles')
function importScript(name) {
/* - Disabled pending additional discussion
var $notification = $('<span>').html('An attempt to load a <a>user script</a> has failed. Please see JavaScript console for more information.');
$notification.find('a').attr('href', '/w/index.php?title=' + name );
mw.notify($notification);
*/
mw.log.warn('importScript is deprecated on desktop and never implemented on mobile', 'More information on https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_(users)#importScript');
}
function importStylesheet(name) {
mw.log.warn('importStylesheet is deprecated on desktop and never implemented on mobile', 'More information on https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_(users)#importStylesheet');
}
function addPortletLink() {
mw.log.warn('addPortletLink is deprecated on desktop and never implemented on mobile', 'More information on https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_(users)#addPortletLink');
}