User:Curiouscrab/common.js

if(wgPageName.split('.')[wgPageName.split('.').length-1] == 'js') { $('#mw-content-text').html('' + document.getElementById('mw-content-text').getElementsByClassName('javascript')[0].innerHTML + ' '); } if(wgPageName.split('.')[wgPageName.split('.').length-1] == 'css') { $('#mw-content-text').html('' + document.getElementById('mw-content-text').getElementsByClassName('css')[0].innerHTML + ' '); }