MediaWiki:Common.js: відмінності між версіями
Перейти до навігації
Перейти до пошуку
MrGALL (обговорення | внесок) Немає опису редагування |
MrGALL (обговорення | внесок) Немає опису редагування |
||
| Рядок 14: | Рядок 14: | ||
} | } | ||
} | } | ||
function ukrbash() | |||
{ | |||
if (document.getElementById('ukrbash')) document.write('<script src="http://i.ukrbash.org/export/random.js" type="text/javascript"> </scri'+'pt>'); | |||
} | |||
function analytics() | |||
{ | |||
document.write('<script src="http://www.google-analytics.com/ga.js" type="text/javascript"> </scri'+'pt>'); | |||
try { | |||
var pageTracker = _gat._getTracker("UA-7117465-1"); | |||
pageTracker._trackPageview(); | |||
} catch(err) {} | |||
} | |||
addOnloadHook( ukrbash ); | |||
addOnloadHook( analytics ); | |||
Версія за 18:16, 20 липня 2009
if (document.URL.indexOf("action=edit") > 0 || document.URL.indexOf("action=submit") > 0)
{
if (wgCanonicalNamespace != "Special")
{
document.write('<script type="text/javascript" src="'
+ 'http://lurkmore.com.ua/w/index.php?title=MediaWiki:Onlyifediting.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
addOnloadHook(function(){
if (mwEditButtons.length < 3) return;
mwEditButtons[0].imageFile = 'http://upload.wikimedia.org/wikipedia/commons/f/fa/Button_bold_ukr.png';
mwEditButtons[1].imageFile = 'http://upload.wikimedia.org/wikipedia/commons/f/f3/Button_italic_ukr.png';
mwEditButtons[2].imageFile = 'http://upload.wikimedia.org/wikipedia/commons/0/03/Button_internal_link_ukr.png';
})
}
}
function ukrbash()
{
if (document.getElementById('ukrbash')) document.write('<script src="http://i.ukrbash.org/export/random.js" type="text/javascript"> </scri'+'pt>');
}
function analytics()
{
document.write('<script src="http://www.google-analytics.com/ga.js" type="text/javascript"> </scri'+'pt>');
try {
var pageTracker = _gat._getTracker("UA-7117465-1");
pageTracker._trackPageview();
} catch(err) {}
}
addOnloadHook( ukrbash );
addOnloadHook( analytics );