User:Cqm/oldfilepages.js

/** * Returns file pages to their default MediaWiki look * by User:Cåm */

(function ($, mw) {

if (mw.config.get('wgCanonicalNamespace') !== 'File') { return; }

// remove the tabs and whatlinkshere replacement $('.tabs').remove; $('.page-listings').remove;

// set the tabs to always there $('.tabBody').css('display', 'block');

$('#mw-content-text').append(' File Usage ');

// function to query pages

}(jQuery, mediaWiki));

/* */