Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Rcouseillant (talk | contribs) (Created page with "→Any JavaScript here will be loaded for all users on every page load.: function ModifySidebar( action, section, name, link ) { try { switch ( section ) { case 'lang...") |
Rcouseillant (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | if ( mw.config.get( 'wgUserGroups', [] ).indexOf( 'sysop' ) !== -1 ) { | |
− | + | jQuery( CustomizeModificationsOfSidebar ); | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 09:48, 8 February 2022
if ( mw.config.get( 'wgUserGroups', [] ).indexOf( 'sysop' ) !== -1 ) {
jQuery( CustomizeModificationsOfSidebar );
}