User:P858snake/redirecttab.js

// -- // Description : Adds tab to change colour of redirect links to green // Info       : Original Source => User:Dschwen/HighlightRedirects // User:Dschwen/highlightredirects.js - please include this line 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;', 'Highlight redirects') || addPortletLink ('views', 'javascript:highlightRedirects.run;', 'Highlight redirects'); } }

};

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