470
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
$( function(){ | $( function(){ | ||
if (window.matchMedia("(max-width: 768px)").matches && mw.config.get("skin") !== "minerva" ) { | |||
const currWikiUrl = new URL(window.location.href); | |||
currWikiUrl.searchParams.set('useskin', 'minerva'); | |||
window.location.replace(currWikiUrl); | |||
} else { | |||
if( mw.config.get("skin") !== "vector" ){ | |||
const currWikiUrl = new URL(window.location.href); | |||
currWikiUrl.searchParams.set('useskin', 'vector'); | |||
window.location.replace(currWikiUrl); | |||
} | |||
} | |||
if( mw.config.get('wgIsMainPage') ){ | if( mw.config.get('wgIsMainPage') ){ | ||
$('#firstHeading').remove(); | $('#firstHeading').remove(); |