User:Mandi2517@legacy41958928/monobook.js

importScript('MediaWiki:admin.js'); if (wgAction != 'edit' && wgCanonicalNamespace != 'Special') { var highlightRedirects = { tab_redirects : null, addStylesheetRule : function(tag, style) { var ss = document.styleSheets[0]; if (ss.insertRule) { ss.insertRule(tag + '{' + style + '}', ss.cssRules.length); } else if (ss.addRule) { ss.addRule(tag, style); } }, run : function { highlightRedirects.addStylesheetRule('a.mw-redirect', 'color:green'); highlightRedirects.addStylesheetRule('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); }