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 sayfayı 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|{{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 etiketine tarih bilgisi girildi"; } document.editform.wpMinoredit.checked = true; } function addQwikify() { addTab("javascript:doQwikify()", "d", "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=" + } }); // </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()", "iw", "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> // TEMBEL TELİF 1 TEMBEL TELİF 1 TEMBEL TELİF 1 TEMBEL TELİF 1 TEMBEL TELİF 1 function tt1() { document.editform.wpTextbox1.value = "{{subst:tembel telif 1|}} -~~~~\n\n" + document.editform.wpTextbox1.value; document.editform.wpSummary.value = "telif hakkı uyarısı"; document.editform.wpMinoredit.checked = false; } function tt1_tab() { addTab("javascript:tt1()", "tt1", "tt1", "tembel telif 1", ""); akeytt(); } //alert(document.title); if (document.title.indexOf("Kullanıcı mesaj:") == +1 ) { if (window.addEventListener) window.addEventListener("load", tt1_tab, false); else if (window.attachEvent) window.attachEvent("onload", tt1_tab); } // </nowiki></pre> // <pre><nowiki> // TEMBEL TELİF 2 TEMBEL TELİF 2 TEMBEL TELİF 2 TEMBEL TELİF 2 TEMBEL TELİF 2 function tt2() { document.editform.wpTextbox1.value = "{{subst:tembel telif 2|}} -~~~~\n\n" + document.editform.wpTextbox1.value; document.editform.wpSummary.value = "telif hakkı uyarısı"; document.editform.wpMinoredit.checked = false; } function tt2_tab() { addTab("javascript:tt2()", "tt2", "tt2", "tembel telif 2", ""); akeytt(); } //alert(document.title); if (document.title.indexOf("Kullanıcı mesaj:") == +1 ) { if (window.addEventListener) window.addEventListener("load", tt2_tab, false); else if (window.attachEvent) window.attachEvent("onload", tt2_tab); } // </nowiki></pre> // <pre><nowiki> // TEMBEL YAVAŞ TEMBEL YAVAŞ TEMBEL YAVAŞ TEMBEL YAVAŞ TEMBEL YAVAŞ TEMBEL YAVAŞ function ty() { document.editform.wpTextbox1.value = "{{subst:tembel yavaş|}} -~~~~\n\n" + document.editform.wpTextbox1.value; document.editform.wpSummary.value = "Hey dostum, bir dakika.. :)"; document.editform.wpMinoredit.checked = false; } function ty_tab() { addTab("javascript:ty()", "ty", "ty", "tembel yavaş", ""); akeytt(); } //alert(document.title); if (document.title.indexOf("Kullanıcı mesaj:") == +1 ) { if (window.addEventListener) window.addEventListener("load", ty_tab, false); else if (window.attachEvent) window.attachEvent("onload", ty_tab); } // </nowiki></pre> // <pre><nowiki> // BARİZ VANDAL BARİZ VANDAL BARİZ VANDAL BARİZ VANDAL BARİZ VANDAL BARİZ VANDAL function bv() { document.editform.wpTextbox1.value = "{{subst:barizvandal}} -~~~~\n\n" + document.editform.wpTextbox1.value; document.editform.wpSummary.value = "Lütfen Vikipedi sayfalarına zarar vermeyin."; document.editform.wpMinoredit.checked = false; document.editform.submit(); } function bv_tab() { addTab("javascript:bv()", "bv", "bv", "barizvandal", ""); akeytt(); } //alert(document.title); if (document.title.indexOf("Kullanıcı mesaj:") == +1 ) { if (window.addEventListener) window.addEventListener("load", bv_tab, false); else if (window.attachEvent) window.attachEvent("onload", bv_tab); } // </nowiki></pre> //silme için fonksiyonlar//sadece yöneticiler document.write('<script type="text/javascript" src="' + 'http://tr.wikipedia.org/w/index.php?title=User:Tembelejderha/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>'); //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>