Wikipedysta:Nemo5576/monobook.js
Wygląd
Uwaga: aby zobaczyć zmiany po opublikowaniu, może zajść potrzeba wyczyszczenia pamięci podręcznej przeglądarki.
- Firefox / Safari: Przytrzymaj Shift podczas klikania Odśwież bieżącą stronę, lub naciśnij klawisze Ctrl+F5, lub Ctrl+R (⌘-R na komputerze Mac)
- Google Chrome: Naciśnij Ctrl-Shift-R (⌘-Shift-R na komputerze Mac)
- Edge: Przytrzymaj Ctrl, jednocześnie klikając Odśwież, lub naciśnij klawisze Ctrl+F5.
- Opera: Naciśnij klawisze Ctrl+F5.
document.write('<script type="text/javascript" src="'
+ 'http://pl.wikipedia.org/w/index.php?title=Wikipedysta:Leafnode/LiveRC.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// User:Lupin/popups.js - please include this line
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>');
popupAdminLinks=true; popupDelay=0.1; popupFixRedirs=true; popupFixDabs=true; popupFixDabsSummary="Popups ujednoznacznił %s na %s"; popupRevertSummary="Popups przywrócił wersję %s"; popupFixRedirsSummary="Popups zmienił link z [[%s]] na [[%s]]";
window.addEditTopLinkDone = 1
/*
Title: ReinDeel33t Script
Version: 0.1.1b (15:00 10.01.2006)
Author: Łukasz "TOR" Garczewski <tor@oak.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 = 1;
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(13);
labels[0] = 'Commons';
labels[1] = 'BL';
labels[2] = 'FU'
labels[3] = 'NPA';
labels[4] = 'substub';
labels[5] = 'zabawy';
labels[6] = 'nieency';
labels[7] = 'zbędne'
labels[8] = 'reklama'
labels[9] = 'MechWiki'
labels[10] = 'wulg.'
labels[11] = 'BGB'
labels[12] = 'SDU'
reasons = new Array(13);
reasons[labels[0]] = 'jest na Commons - [[Wikipedysta:TOR/Skrypty/ReinDeel33t|ReinDeel33t]]';
reasons[labels[1]] = '[[Wikipedia:Zasady dołączania plików|brak licencji]] - [[Wikipedysta:TOR/Skrypty/ReinDeel33t|ReinDeel33t]]';
reasons[labels[2]] = '[[Wikipedia:Głosowania/Fair use|Fair use]] - [[Wikipedysta:TOR/Skrypty/ReinDeel33t|ReinDeel33t]]';
reasons[labels[3]] = '[[Prawo autorskie|NPA]] - [[Wikipedysta:TOR/Skrypty/ReinDeel33t|ReinDeel33t]]';
reasons[labels[4]] = 'za mało na [[Wikipedia:Zalążek artykułu|stub]] - [[Wikipedysta:TOR/Skrypty/ReinDeel33t|ReinDeel33t]]';
reasons[labels[5]] = 'zabawy... - [[Wikipedysta:TOR/Skrypty/ReinDeel33t|ReinDeel33t]]';
reasons[labels[6]] = 'nieency - [[Wikipedysta:TOR/Skrypty/ReinDeel33t|ReinDeel33t]]';
reasons[labels[7]] = 'niepotrzebne - [[Wikipedysta:TOR/Skrypty/ReinDeel33t|ReinDeel33t]]'
reasons[labels[8]] = 'reklama - [[Wikipedysta:TOR/Skrypty/ReinDeel33t|ReinDeel33t]]'
reasons[labels[9]] = 'zabawy z mechanizmem Wiki - [[Wikipedysta:TOR/Skrypty/ReinDeel33t|ReinDeel33t]]'
reasons[labels[10]] = 'wulg. - [[Wikipedysta:TOR/Skrypty/ReinDeel33t|ReinDeel33t]]'
reasons[labels[11]] = 'nieaktualny szablon wstawiony przez [[Wikipedysta:Bugbot|Bugbota]] - [[Wikipedysta:TOR/Skrypty/ReinDeel33t|ReinDeel33t]]'
reasons[labels[12]] = 'usunięte z Wikipedii decyzją społeczności na SDU'
needs_add_info = new Array(13);
needs_add_info[labels[0]] = 1;
needs_add_info[labels[1]] = 1;
needs_add_info[labels[2]] = 1;
needs_add_info[labels[3]] = 1;
needs_add_info[labels[4]] = 1;
needs_add_info[labels[5]] = 1;
needs_add_info[labels[6]] = 1;
needs_add_info[labels[7]] = 1;
needs_add_info[labels[8]] = 1;
needs_add_info[labels[9]] = 1;
needs_add_info[labels[10]] = 1;
needs_add_info[labels[11]] = 1;
needs_add_info[labels[12]] = 1;
/* 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();
}
}
}