Board Thread:General Coding Help/@comment-5301680-20170811164136/@comment-4347751-20170811205817

This should work: if ( wgIsMainpage == "true" && mw.config.get('skin') == "monobook") {