MediaWiki:Common.js: Difference between revisions

Want an adless experience? Log in or Create an account.
m
Oh forget it!
m (Sleep amount is starting to show...)
m (Oh forget it!)
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)
{
{
$(function() {
addOnloadHook(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)
{
{
$(function() {
addOnloadHook(function() {
     highlightadmins(document.getElementById('bodyContent').firstChild,
     highlightadmins(document.getElementById('bodyContent').firstChild,
                     document.getElementById('bodyContent'));
                     document.getElementById('bodyContent'));