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('n-recentchanges'); | ||
+ | node1.parentNode.removeChild(node1); | ||
+ | var node2 = document.getElementById('n-help'); | ||
+ | node2.parentNode.removeChild(node2); | ||
} | } | ||
Version du 23 mars 2018 à 18:32
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 ); }