// <pre><nowiki>
//Please leave the following line
//[[user:Where/usertabs]]
$(function() {
if (document.title.search("/") != -1 || document.title.search("- History -") != -1) { //no subpages or history
return;
}
if (document.title.indexOf("Kullanıcı:") == 0 || document.title.indexOf("Kullanıcı mesaj:") == 0) {
username_a = document.URL.match(/:.*:(.*)/);
username=username_a[1];
addTab("http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?user="+ username+ "&dbname=trwiki_p", "Sayı", "ca-interiot", "interiot değişiklik sayısı", "");
}
});
/* function addForceSummary()
{
if(!/&action=edit/.test(window.location.href) && !/&action=submit/.test(window.location.href)) return;
if(/§ion=new/.test(window.location.href)) return;
if(!document.forms.editform) return;
document.forms.editform.wpSave.onclick = forceSummary;
}
function forceSummary()
{
if(!document.forms.editform.wpSummary.value.replace(/^(?:\/\\*.*\\*\/)? *(.*) *$/,'$1'))
{
var r = prompt('Değişiklik özeti yazmadan devam etmek istediğinize emin misiniz?\nÖzet eklemek için, aşağıdaki kutuya özet yazabilirsiniz:',document.forms.editform.wpSummary.value);
if(r == null) { return false; }
document.forms.editform.wpSummary.value = r;
}
return true;
}
$(addForceSummary);
*/
function doDeg () {
document.forms.movepage.wpNewTitle.value = document.forms.movepage.wpNewTitle.value.replace("User","Kullanıcı");
document.forms.movepage.wpReason.value = "Türkçeleştirme";
document.forms.movepage.submit();
}
function addDegistir() {
addTab("javascript:doDeg()", "Kullanıcı yap", "ca-de1", "", "");
akeytt();
}
if (document.title.indexOf("İsim değişikliği") != -1) {
if (window.addEventListener) window.addEventListener("load", addDegistir, false);
else if (window.attachEvent) window.addEventListener("load", addDegistir, false);
}
// </nowiki></pre>