MediaWiki:Common.js : Différence entre versions
Ligne 2 : | Ligne 2 : | ||
var toolbar = document.getElementById('p-tb'); | var toolbar = document.getElementById('p-tb'); | ||
toolbar.parentNode.removeChild(toolbar); | toolbar.parentNode.removeChild(toolbar); | ||
− | var node1 = document.getElementById(' | + | var node1 = document.getElementById('n-recentchanges'); |
node1.parentNode.removeChild(node1); | node1.parentNode.removeChild(node1); | ||
− | var node2 = document.getElementById(' | + | var node2 = document.getElementById('n-help'); |
node2.parentNode.removeChild(node2); | node2.parentNode.removeChild(node2); | ||
} | } |
Version actuelle datée du 23 mars 2018 à 18:35
function CustomizeModificationsOfSidebar() { var toolbar = document.getElementById('p-tb'); toolbar.parentNode.removeChild(toolbar); var node1 = document.getElementById('n-recentchanges'); node1.parentNode.removeChild(node1); var node2 = document.getElementById('n-help'); node2.parentNode.removeChild(node2); } if ( mw.config.get( 'wgUserId') == null ) { jQuery( CustomizeModificationsOfSidebar ); }