MediaWiki:Common.js: Difference between revisions

Want an adless experience? Log in or Create an account.
m
no edit summary
mNo edit summary
mNo edit summary
Line 53: Line 53:
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)
{
{
addOnloadHook(function() {
$(function() {
     highlightpatrollers(document.getElementById('bodyContent').firstChild,
     highlightpatrollers(document.getElementById('bodyContent').firstChild,
                     document.getElementById('bodyContent'));
                     document.getElementById('bodyContent'));
Line 103: Line 103:
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)
{
{
addOnloadHook(function() {
$(function() {
     highlightadmins(document.getElementById('bodyContent').firstChild,
     highlightadmins(document.getElementById('bodyContent').firstChild,
                     document.getElementById('bodyContent'));
                     document.getElementById('bodyContent'));