Personal tools

Difference between revisions of "MediaWiki:Common.js"

From ICOP tech wiki

Jump to: navigation, search
 
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 fix_toolbar() {
 
function fix_toolbar() {
 
document.getElementById("p-tb").remove();
 
document.getElementById("p-tb").remove();
Line 10: Line 12:
 
fix_toolbar();
 
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();
}
*/