Kullanıcı:Ugur Basak/ek.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> // If you are editing a page, click the wikify button on your tab bar to add "{{wikify}}" to the top, set "Marked for wikification." as the edit summary, mark it as a minor edit, and submit. function doQwikify() { if(document.editform.wpTextbox1.value.indexOf("{{düzenle}}")==-1 && document.editform.wpTextbox1.value.indexOf("{{Düzenle}}")==-1) { document.editform.wpTextbox1.value = "{{düzenle|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}\n\n" + document.editform.wpTextbox1.value; document.editform.wpSummary.value = "düzenleme yapılmalı"; } else { document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.replace("{{düzenle}}","{{düzenle|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}"); document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.replace("{{Düzenle}}","{{düzenle|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}"); document.editform.wpSummary.value = "düzenle -> düzenle tarih"; } document.editform.wpMinoredit.checked = true; document.editform.submit(); } function addQwikify() { addTab("javascript:doQwikify()", "düzenle", "ca-wikify", "düzenleme yapılması için işaretle", ""); akeytt(); } function doTemizleme() { if(document.editform.wpTextbox1.value.indexOf("{{temizleme}}")==-1 && document.editform.wpTextbox1.value.indexOf("{{Temizleme}}")==-1) { document.editform.wpTextbox1.value = "{{temizleme|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}\n\n" + document.editform.wpTextbox1.value; document.editform.wpSummary.value = "temizleme yapılmalı"; } else { document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.replace("{{temizleme}}","{{temizleme|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}"); document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.replace("{{Temizleme}}","{{temizleme|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}"); document.editform.wpSummary.value = "temizleme -> temizleme tarih"; } document.editform.wpMinoredit.checked = true; document.editform.submit(); } function addTemizleme() { addTab("javascript:doTemizleme()", "temizleme", "ca-temizleme", "temizleme yapılması için işaretle", ""); akeytt(); } function doTashih() { if(document.editform.wpTextbox1.value.indexOf("{{tashih}}")==-1 && document.editform.wpTextbox1.value.indexOf("{{Tashih}}")==-1) { document.editform.wpTextbox1.value = "{{tashih}}\n\n" + document.editform.wpTextbox1.value; document.editform.wpSummary.value = "tashih edilmeli"; } document.editform.wpMinoredit.checked = true; document.editform.submit(); } function addTashih() { addTab("javascript:doTashih()", "tashih", "ca-tashih", "tashih edilmesi için işaretle", ""); akeytt(); } //alert(document.title); if (document.title.indexOf(" değiştirmektesiniz") != -1 && document.title.indexOf("Kullanıcı:") == -1 && document.title.indexOf("Kullanıcı mesaj:") == -1 ) { if (window.addEventListener){ window.addEventListener("load", addQwikify, false); window.addEventListener("load", addTemizleme, false); window.addEventListener("load", addTashih, false); } else if (window.attachEvent){ window.attachEvent("onload", addQwikify); window.attachEvent("onload", addTemizleme); window.attachEvent("onload", addTashih); } } // <pre><nowiki> // This will add an [edit top] link at the top of all pages except preview pages // by User:Pile0nades // Add an [edit top] link to pages addOnloadHook(function () { // if this is preview page or generated page, stop if(document.getElementById("wikiPreview") || window.location.href.indexOf("/wiki/Special:") != -1) return; // get the page title var pageTitle = document.title.split(" - ")[0].replace(" ", "_"); // create div and set innerHTML to link var divContainer = document.createElement("div"); divContainer.innerHTML = '<div class="editsection" style="float:right;margin-left:5px;margin-right:15px;margin-top:3px;">[<a href="/w/index.php?title='+pageTitle+'&action=edit§ion=0" title="'+document.title.split(" - ")[0]+'">edit top</a>]</div>'; // insert divContainer into the DOM before the h1 if(window.location.href.indexOf("&action=edit") == -1) document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]); if(window.location.href.indexOf("&action=edit§ion=0") != -1) document.getElementById("wpSummary").value = "/* Giriş */ "; }); // </nowiki></pre> // <pre><nowiki> //Please leave the following line //[[user:Where/usertabs]] addOnloadHook(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://tr.wikipedia.org/wiki/Special:Contributions/" + username, "katkı", //"ca-contrib", "katkıları", ""); addTab("http://tr.wikipedia.org/w/index.php?title=Special%3ALog&type=move&user=" + username, "taşıma", "ca-pagemoves", "sayfa taşımaları", ""); // addTab("http://tr.wikipedia.org/w/index.php?title=Special%3ALog&type=block&user=" + //username, "engel", "ca-blog", "erişim engelleme kayıtları", ""); addTab("http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?user="+ username+ "&dbname=trwiki_p", "interiot", "ca-interiot", "interiot değişiklik sayısı", ""); } }); // </nowiki></pre> /* <pre><nowiki> */ 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; } addOnloadHook(addForceSummary); /* </nowiki></pre> */ // <pre><nowiki> // If you are editing a page, click the wikify button on your tab bar to add "{{wikify}}" to the top, set "Marked for wikification." as the edit summary, mark it as a minor edit, and submit. function doInterwiki() { var pageTitle = document.title.split(" - ")[0]; var pagename = document.title.substr(pageTitle.indexOf('"')+1, pageTitle.lastIndexOf('"')-1); var str_interwiki="[[en:"+pagename+"]]"; if(document.editform.wpTextbox1.value.indexOf("[[en:")==-1) { document.editform.wpTextbox1.value = document.editform.wpTextbox1.value+"\n"+str_interwiki; document.editform.wpSummary.value = "interwiki "+str_interwiki; document.editform.wpMinoredit.checked = true; document.editform.submit(); } } function addInterwiki() { addTab("javascript:doInterwiki()", "interwiki", "ca-interwiki", "interwiki", ""); akeytt(); } //alert(document.title); if (document.title.indexOf(" değiştirmektesiniz") != -1 && document.title.indexOf("Kullanıcı:") == -1 && document.title.indexOf("Kullanıcı mesaj:") == -1 ) { if (window.addEventListener) window.addEventListener("load", addInterwiki, false); else if (window.attachEvent) window.attachEvent("onload", addInterwiki); } // </nowiki></pre> // <pre><nowiki> function doWelcome() { document.editform.wpTextbox1.value = "{{subst:hoşgeldin}} --~~~~"; document.editform.wpSummary.value = "Vikipedi'ye hoşgeldin"; document.editform.wpWatchthis.checked = false; document.editform.submit(); } function addWelcome() { addTab("javascript:doWelcome()", "hoşgeldin", "ca-welcome", "hoşgeldin", ""); akeytt(); } //alert(document.title); if (document.title.indexOf(" değiştirmektesiniz") != -1 && document.title.indexOf("Kullanıcı mesaj:") != -1 ) { if (window.addEventListener) window.addEventListener("load", addWelcome, false); else if (window.attachEvent) window.attachEvent("onload", addWelcome); } // </nowiki></pre>