|
Post by Wormopolis on May 1, 2009 3:16:27 GMT -8
Browsers Tested: IE and FF placement: main footer or global footer
Will hide a username in the moderator list for boards. if its the only name, will hide the moderator list completely.
code:
<script type="text/javascript"> <!-- // hide moderators based on username v1.0 // by Wormopolis - wormocdes.proboards.com // keep header intact
var usernames="(test|admin|user3)"; //seperate by |
// no need to edit below var namecheck= new RegExp('user='+usernames, 'i'); for (mds=document.getElementsByTagName('i'), i=0; i<mds.length; i++) { if (mds[i].innerHTML.match(/moderator/i)) { for (lnks=mds[i].getElementsByTagName('a'), j=0; j<lnks.length; j++) { if (lnks[j].href.match(namecheck)) { lnks[j].style.display="none"; if (lnks[j].nextSibling && lnks[j].nextSibling.nodeValue) lnks[j].nextSibling.nodeValue=""; if (lnks.length==1) mds[i].style.display="none"; } } } } // --> </script>
Preview: it hides names.. self explanatory
|
|