I don't want to change link colors. I want to remove links.
This used to work up until a month ago. Please tell me what I need to do to make it work again.
Please.
function JidanniLessUselessNavigation($sktemplate,$links){ foreach($links['namespaces'] as $ns=>&$value){ if($value['context']=='talk' && $value['class']=='new' && !$sktemplate->getTitle()->quickUserCan('createtalk')){ unset($links['namespaces'][$ns]);} if($ns=='category' && $value['class']=='selected new'){ $value['class']='selected'; if(isset($links['actions']['watch'])){unset($links['actions']['watch']);}}} return true;} $wgHooks['SkinTemplateNavigation'][]='JidanniLessUselessNavigation';
Thanks.