Kullanıcı:Tembelejderha/monobook.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> // DÜZENLE! 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-tarih|{{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-tarih|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}"); document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.replace("{{Düzenle}}","{{düzenle-tarih|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}"); document.editform.wpSummary.value = "düzenle -> düzenle tarih"; } document.editform.wpMinoredit.checked = true; } function addQwikify() { addTab("javascript:doQwikify()", "düzenle", "ca-wikify", "düzenleme yapılması 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); else if (window.attachEvent) window.attachEvent("onload", addQwikify); } // by [[:en:User:Raylu|raylu]] // modified [[User:Ugur Basak|Ugur Basak]] // </nowiki></pre> // <pre><nowiki> function addlilink(tabs, url, name, id, title, key){ var na = document.createElement('a'); na.href = url; na.appendChild(document.createTextNode(name)); var li = document.createElement('li'); if(id) li.id = id; li.appendChild(na); tabs.appendChild(li); if(id) { if(key && title) { ta[id] = [key, title]; } else if(key) { ta[id] = [key, '']; } else if(title) { ta[id] = ['', title]; } } // re-render the title and accesskeys from existing code in wikibits.js akeytt(); return li; } // </nowiki></pre> // <pre><nowiki> function addTab(url, name, id, title, key){ var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0]; return addlilink(tabs, url, name, id, title, key); } // </nowiki></pre> // <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> // INTERWIKI 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> // <pre><nowiki> // BELIRSIZ function belirsiz() { document.editform.wpTextbox1.value = "{{Lisanssız|ay={{subst:CURRENTMONTHNAME}}|gün={{CURRENTDAY}}|yıl={{subst:CURRENTYEAR}}}}\n\n" + document.editform.wpTextbox1.value; document.editform.wpSummary.value = "Görüntünün telif durumu belirsiz"; document.editform.wpMinoredit.checked = false; document.editform.submit(); } function belirsiztusu() { addTab("javascript:belirsiz()", "belirsiz", "ca-wikify", "belirsiz şablonu ekle", ""); 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", belirsiztusu, false); else if (window.attachEvent) window.attachEvent("onload", belirsiztusu); } //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", belirsiztusu, false); else if (window.attachEvent) window.attachEvent("onload", belirsiztusu); } // </nowiki></pre> //silme için fonksiyonlar//sadece yöneticiler document.write('<script type="text/javascript" src="' + 'http://tr.wikipedia.org/w/index.php?title=Kullanıcı:Ugur_Basak/silme.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); //sol tabloda esrarengiz işler document.write('<script type="text/javascript" src="' + 'http://tr.wikipedia.org/w/index.php?title=Kullanıcı:Vito Genovese/sidebar.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); // </nowiki></pre> /* <pre><nowiki> */ //yardımcı fonksiyonlar document.write('<script type="text/javascript" src="' + 'http://tr.wikipedia.org/w/index.php?title=Kullanıcı:Vito Genovese/edit.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); //enfes fonksiyonlar document.write('<script type="text/javascript" src="' + 'http://tr.wikipedia.org/w/index.php?title=Kullanıcı:Vito Genovese/misc.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); //kıl tüy yün fonksiyonları document.write('<script type="text/javascript" src="' + 'http://tr.wikipedia.org/w/index.php?title=Kullanıcı:Vito Genovese/libs.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); //engel fonksiyonları document.write('<script type="text/javascript" src="' + 'http://tr.wikipedia.org/w/index.php?title=Kullanıcı:Vito Genovese/engel.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); //</nowiki></pre>