MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
mNo edit summary
m (Undid revision 4302 by Matt (talk))
Line 70: Line 70:
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)
{
{
$(function() {
addOnloadHook(function() {
     highlightpatrollers(document.getElementById('bodyContent').firstChild,
     highlightpatrollers(document.getElementById('bodyContent').firstChild,
                     document.getElementById('bodyContent'));
                     document.getElementById('bodyContent'));
Line 120: Line 120:
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)
{
{
$(function() {
addOnloadHook(function() {
     highlightadmins(document.getElementById('bodyContent').firstChild,
     highlightadmins(document.getElementById('bodyContent').firstChild,
                     document.getElementById('bodyContent'));
                     document.getElementById('bodyContent'));