Kullanıcı:Bahar101/edit.js
Vikipedi, özgür ansiklopedi
Not: Ayarlarınızı kaydettikten sonra, tarayıcınızın belleğini de temizlemeniz gerekmektedir: Mozilla / Firefox / Safari: Shift e basılıyken safyayı yeniden yükleyerek veya Ctrl-Shift-R yaparak (Apple Mac için Cmd-Shift-R);, IE: Ctrl-F5, Konqueror: Sadece sayfayı yeniden yükle tuşuna basarak.
// <pre><nowiki> function Ekle(ek, ozet, yer) { if (ek == "interwiki") { var pageTitle = document.title.split(" - ")[0]; var pagename = document.title.substr(pageTitle.indexOf('"')+1, pageTitle.lastIndexOf('"')-1); var ek="[[en:"+pagename+"]]"; if(document.editform.wpTextbox1.value.indexOf("[[en:")!=-1) return; } if (yer == "t") document.editform.wpTextbox1.value = ek + "\n\n" + document.editform.wpTextbox1.value ; else if (yer == "a") document.editform.wpTextbox1.value = document.editform.wpTextbox1.value + "\n" + ek ; document.editform.wpSummary.value = ozet; // document.editform.wpMinoredit.checked = true; document.editform.submit(); } function addKmesaj() { addTab("javascript:Ekle('{{subst:Hoş geldin}}','Hoş geldin','t')", "hoş geldin", "ca-hg", "Hoş geldin mesajı",""); akeytt(); } if (document.title.indexOf(" değiştirmektesiniz") != -1 ) { if (document.title.indexOf("Kullanıcı mesaj:") != -1 ) { if (window.addEventListener) window.addEventListener("load", addKmesaj, false); else if (window.attachEvent) window.attachEvent("onload", addKmesaj); } else if (document.title.indexOf("Resim:") != -1 ) { if (window.addEventListener) window.addEventListener("load", addRmesaj, false); else if (window.attachEvent) window.attachEvent("onload", addRmesaj); } else { if (document.title.indexOf("tartışma:") == -1 && document.title.indexOf("Kullanıcı:") == -1 ) { if (window.addEventListener) window.addEventListener("load", addMmesaj, false); else if (window.attachEvent) window.attachEvent("onload", addMmesaj); } } } // </nowiki></pre>