17,230
edits
(importScript -> mw.loader.load) |
(addOnloadHook -> jQuery) |
||
Line 51: | Line 51: | ||
if (wgCanonicalNamespace == 'Special' || wgAction == 'history' || document.URL.indexOf('diff=') > 0 || document.URL.indexOf('oldid=') > 0) | if (wgCanonicalNamespace == 'Special' || wgAction == 'history' || document.URL.indexOf('diff=') > 0 || document.URL.indexOf('oldid=') > 0) | ||
{ | { | ||
jQuery(function() { | |||
highlightpatrollers(document.getElementById('bodyContent').firstChild, | highlightpatrollers(document.getElementById('bodyContent').firstChild, | ||
document.getElementById('bodyContent')); | document.getElementById('bodyContent')); | ||
Line 101: | Line 101: | ||
if (wgCanonicalNamespace == 'Special' || wgAction == 'history' || document.URL.indexOf('diff=') > 0 || document.URL.indexOf('oldid=') > 0) | if (wgCanonicalNamespace == 'Special' || wgAction == 'history' || document.URL.indexOf('diff=') > 0 || document.URL.indexOf('oldid=') > 0) | ||
{ | { | ||
jQuery(function() { | |||
highlightadmins(document.getElementById('bodyContent').firstChild, | highlightadmins(document.getElementById('bodyContent').firstChild, | ||
document.getElementById('bodyContent')); | document.getElementById('bodyContent')); | ||
Line 151: | Line 151: | ||
if (wgCanonicalNamespace == 'Special' || wgAction == 'history' || document.URL.indexOf('diff=') > 0 || document.URL.indexOf('oldid=') > 0) | if (wgCanonicalNamespace == 'Special' || wgAction == 'history' || document.URL.indexOf('diff=') > 0 || document.URL.indexOf('oldid=') > 0) | ||
{ | { | ||
jQuery(function() { | |||
highlightbots(document.getElementById('bodyContent').firstChild, | highlightbots(document.getElementById('bodyContent').firstChild, | ||
document.getElementById('bodyContent')); | document.getElementById('bodyContent')); |