User:Osiris/vector.js

if (wgAction != 'edit' && wgCanonicalNamespace != 'Special') { var highlightRedirects = { tab_redirects : null,

run : function { appendCSS('a.mw-redirect { color:green} a.mw-redirect:visited { color:darkgreen}'); },

install : function { with(highlightRedirects) {  addPortletLink ('p-cactions', 'javascript:highlightRedirects.run;', 'redirects') || addPortletLink ('views', 'javascript:highlightRedirects.run;', 'redirects'); } }

};

// // Hook up installation function // addOnloadHook(highlightRedirects.install); }