Add the following code to your conf/userscript.js
.
if(jQuery("#dokuwiki__usertools li.action.login").length) { (function() { let $ul = jQuery('#dokuwiki__sitetools > ul'); let $mobile = jQuery('#dokuwiki__sitetools > div.mobileTools'); /* Recent Changes */ $ul.find('li.action.recent').hide(); $mobile.find('option[value="recent"]').hide(); /* Media Manager */ $ul.find('li.action.media').hide(); $mobile.find('option[value="media"]').hide(); /* Sitemap */ $ul.find('li.action.index').hide(); $mobile.find('option[value="index"]').hide(); })(); }
This will hide all the site tools.
To make a part of the site tools show up, you can delete (or comment out) the target lines from the above code. For example, if you like to display Recent Changes, remove the following two lines.
$ul.find('li.action.recent').hide(); $mobile.find('option[value="recent"]').hide();