User:QTE-Test24-WMF/vector.js

/* if ( mw.config.get('skin') === 'vector' && document.body.classList.contains('skin-vector-legacy') ) { alert('Legacy works!') }

if ( mw.config.get('skin') === 'vector' && !document.body.classList.contains('skin-vector-legacy') ) { alert('Modern works!') }