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 | + | var node1 = document.getElementById('p-recentchanges'); |
− | + | node1.parentNode.removeChild(node1); | |
+ | var node2 = document.getElementById('p-help'); | ||
+ | node2.parentNode.removeChild(node2); | ||
} | } | ||
Version du 23 mars 2018 à 18:34
function CustomizeModificationsOfSidebar() { var toolbar = document.getElementById('p-tb'); toolbar.parentNode.removeChild(toolbar); var node1 = document.getElementById('p-recentchanges'); node1.parentNode.removeChild(node1); var node2 = document.getElementById('p-help'); node2.parentNode.removeChild(node2); } if ( mw.config.get( 'wgUserId') == null ) { jQuery( CustomizeModificationsOfSidebar ); }