User:Curiouscrab/common.js

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