Удзельнік:Bocianski/monobook.js
Зьвесткі зь Вікіпэдыі — вольнай энцыкляпэдыі.
Note: After saving, you may have to bypass your browser's cache to see the changes. Mozilla / Firefox / Safari: hold down Shift while clicking Reload, or press Ctrl-Shift-R (Cmd-Shift-R on Apple Mac); IE: hold Ctrl while clicking Refresh, or press Ctrl-F5; Konqueror:: simply click the Reload button, or press F5; Opera users may need to completely clear their cache in Tools→Preferences.
// [[:en:User:Lupin/popups.js]] document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); popupDelay=1; // opóźnienie w sekundach popupFixRedirs=true; // naprawianie linków do przekierowań popupFixDabs=true; // naprawianie linków do stron ujednoznaczniających popupRevertSummaryPrompt=true; // możliwość zmiany tekstu przy revertowaniu /* <pre> Title: ReinDeel33t Scirpt Version: 0.1.1b (15:00 10.01.2006) Author: Łukasz "TOR" Garczewski <tor@oak.pl>, [[pl:User:TOR]] License: GFDL, GPL, CC-by (choose one ;)) Note: en: This script was written with the invaluable help of Peter-Paul Koch's javascript tutorials found at his homepage, QuirksMode <http://www.quirksmode.org/>. If you like what I've done here, send him some happy thoughts. ;) pl: Ten skrypt został napisany dzięki nieocenionej pomocy tutoriali Petera-Paula Kocha, które znajduja sie na jego stronie domowej, QuirksMode <http://www.quirksmode.org/>. Jesli podoba ci sie to co tutaj stworzylem, wyslij mu troche cieplych mysli. ;) Disclaimer: en: This script is under heavy development. I cannot guarantee anything. I can't even guarantee it's a script. ;) Use at your own risk. pl: Ten skrypt jest obecnie w fazie bardzo rozwojowej. Nie gwaratunje niczego. Nie gwarantuje nawet, ze to jest skrypt. ;) Uzywasz na wlasne ryzyko. */ function setupRightClickEdit() { if (document.getElementById) { if (document.getElementById('deleteconfirm')) { /* FEATURE: Hardcore Mode changing the value of del_hardcore_mode to 1 will cause the script to automatically submit the form if needs_add_info = 0 be *sure* you know what you're doing *before* you enable this */ del_hardcore_mode = 0; target = document.getElementById('deleteconfirm').childNodes[1].childNodes[1].firstChild; var temp = document.createElement('TD'); target.appendChild(temp); var workspace = target.childNodes[5]; workspace.setAttribute('rowspan','2'); workspace.setAttribute('style','vertical-align: top'); /* OPTIONS section start */ labels = new Array(14); labels[0] = 'wulgaryzmy'; labels[1] = 'wygłupy'; labels[2] = 'NPA'; labels[3] = 'substub'; labels[4] = 'STYL'; labels[5] = 'TREŚĆ'; labels[6] = 'forum'; labels[7] = 'sierotka'; labels[8] = 'stare'; labels[9] = 'SDU-24'; labels[10] = 'SDU'; labels[11] = 'redir'; labels[12] = 'EXPERIM'; labels[13] = 'SPAM'; reasons = new Array(14); reasons[labels[0]] = 'wulgaryzmy'; reasons[labels[1]] = 'wygłupy'; reasons[labels[2]] = 'NPA'; reasons[labels[3]] = 'za mało na [[Wikipedia:Zalążek artykułu|stub]]'; reasons[labels[4]] = 'hasło wymaga gruntownej redakcji od podstaw'; reasons[labels[5]] = 'z treści nie wynika encyklopedyczność'; reasons[labels[6]] = 'brak związku z meritum, to nie forum dyskusyjne'; reasons[labels[7]] = 'sierotka po usuniętym haśle'; reasons[labels[8]] = 'stare, nieaktualne, lub załatwione'; reasons[labels[9]] = 'usunięte decyzją społeczności w trybie przyśpieszonym'; reasons[labels[10]] = 'usunięte decyzją społeczności w trybie zwykłym'; reasons[labels[11]] = 'zbędny redirect'; reasons[labels[12]] = 'nieudane eksperymenty'; reasons[labels[13]] = 'spam'; needs_add_info = new Array(14); needs_add_info[labels[0]] = 0; needs_add_info[labels[1]] = 0; needs_add_info[labels[2]] = 1; needs_add_info[labels[3]] = 0; needs_add_info[labels[4]] = 0; needs_add_info[labels[5]] = 0; needs_add_info[labels[6]] = 0; needs_add_info[labels[7]] = 0; needs_add_info[labels[8]] = 0; needs_add_info[labels[9]] = 0; needs_add_info[labels[10]] = 0; needs_add_info[labels[11]] = 0; needs_add_info[labels[12]] = 0; needs_add_info[labels[13]] = 0; /* OPTIONS section end */ for (i=0; ((i+1) <= reasons.length); i++) { workspace.appendChild(document.createElement('A')); workspace.childNodes[(2 * i)].setAttribute('href','javascript:giveReason("' + labels[i] + '")'); workspace.childNodes[(2 * i)].appendChild(document.createTextNode(labels[i])); workspace.appendChild(document.createTextNode(' ')); } } } } function giveReason(msg) { document.getElementById('wpReason').setAttribute('value',reasons[msg]); if (needs_add_info[msg]) { document.getElementById('wpReason').focus(); } else { if (del_hardcore_mode == 1) { document.getElementById('deleteconfirm').submit(); } else { target.parentNode.childNodes[2].childNodes[3].childNodes[1].focus(); } } } /* </pre> */