Difference between revisions of "MediaWiki:Common.js"
From ICOP tech wiki
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
− | function | + | /* |
− | + | function fix_toolbar() { | |
− | + | document.getElementById("p-tb").remove(); | |
− | + | document.getElementById("n-recentchanges").remove(); | |
− | + | document.getElementById("n-randompage").remove(); | |
− | + | document.getElementById("n-help-mediawiki").remove(); | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | + | if ( mw.config.get( 'wgUserGroups', [] ).indexOf( 'user' ) === -1 ) { | |
− | + | fix_toolbar(); | |
− | |||
− | |||
− | |||
} | } | ||
− | + | */ | |
− |
Latest revision as of 18:46, 23 April 2020
/* Any JavaScript here will be loaded for all users on every page load. */ /* function fix_toolbar() { document.getElementById("p-tb").remove(); document.getElementById("n-recentchanges").remove(); document.getElementById("n-randompage").remove(); document.getElementById("n-help-mediawiki").remove(); } if ( mw.config.get( 'wgUserGroups', [] ).indexOf( 'user' ) === -1 ) { fix_toolbar(); } */