17,230
edits
(addPortletLink -> mw.util.addPortletLink) |
m (update deprecated wg variables to mw.config) |
||
Line 3: | Line 3: | ||
// adds a tab to the top of pages, when clicked it highlights all links on the page that are redirects. | // adds a tab to the top of pages, when clicked it highlights all links on the page that are redirects. | ||
// -------------------------------------------------------- | // -------------------------------------------------------- | ||
if (wgCanonicalNamespace != 'Special' && | var action = mw.config.get('wgAction'); | ||
!= 'unwatch' && | if (mw.config.get('wgCanonicalNamespace') != 'Special' && action != 'history' && action != 'delete' && action != 'watch' && action | ||
!= 'unwatch' && action != 'protect' && action != 'markpatrolled' && action != 'rollback' && document.URL.indexOf('diff=') <= 0) | |||
{ | { | ||
var highlightRedirects = { | var highlightRedirects = { |