Wikipedysta:Pantelejmon/vector.js
function beau$oldReviewedPages()
{
var bodyContent = document.getElementById('bodyContent')
if (!bodyContent) return
var list = bodyContent.getElementsByTagName('ul')
if (list.length < 1) return
list = list[0]
var listItems = list.getElementsByTagName('li')
var i = 0
var done = 0
while(i < listItems.length && done < 10)
{
var item = listItems[i]
i++
if(getElementsByClassName(item, 'b', 'fr-under-review').length > 0) continue
if(item.style.backgroundColor!='') continue
var links = item.getElementsByTagName('a')
if(links.length < 2) continue
window.open(links[1].href)
item.style.backgroundColor = 'orange'
done++
}
}
function beau$oldReviewedPagesOnload()
{
var bodyContent = document.getElementById('bodyContent')
if (!bodyContent) return
var list = bodyContent.getElementsByTagName('ul')
if (list.length < 1) return
list = list[0];
mw.util.addPortletLink('p-cactions', '#', 'otwórz pierwsze 10 stron do przejrzenia', 'portlet-open-ten-pages')
document.getElementById('portlet-open-ten-pages').onclick=beau$oldReviewedPages
var a = document.createElement('a')
var b = document.createElement('b')
var p = document.createElement('p')
b.appendChild(document.createTextNode('Otwórz pierwsze 10 stron do przejrzenia'))
a.appendChild(b)
a.href='#'
a.onclick=beau$oldReviewedPages
p.appendChild(a)
list.parentNode.insertBefore(p, list)
}
if(wgCanonicalSpecialPageName == "OldReviewedPages")
{
addOnloadHook(beau$oldReviewedPagesOnload)
}
importScript('Wikipedysta:Matma Rex/defaultsort.js');
// <nowiki> -------------------------------------------
// przyciski tylko podczas edycji strony dyskusji - testy
$(function()
{
if (wgNamespaceNumber != 3)
return;
if (wgAction != 'edit')
return;
var userSummaryButtons = document.getElementById('userSummaryButtons');
if (! userSummaryButtons)
{
var userSummaryButtons = document.createElement('div');
userSummaryButtons.id = 'userSummaryButtons'
var minoredit = document.getElementById('wpMinoredit');
if (! minoredit)
return;
minoredit.parentNode.insertBefore(userSummaryButtons, minoredit);
}
else
{
userSummaryButtons.appendChild(document.createElement('br'));
}
var el = userSummaryButtons;
przyciskiDodaj(el, 'test', 'usertalk_test(0) ', '', 'test');
przyciskiDodaj(el, 'stub', 'usertalk_test("Stub") ', '', 'artykuł nie spełnia wymagań');
el.appendChild(document.createTextNode(' ')); // odstęp
przyciskiDodaj(el, 'test1', 'usertalk_test(1) ', '', 'obraźliwe sformułowania');
przyciskiDodaj(el, 'wulg', 'usertalk_test("W") ', '', 'wulgaryzmy');
przyciskiDodaj(el, 'wandal', 'usertalk_test("K") ', '', 'wandalizm');
przyciskiDodaj(el, 'testU', 'usertalk_test("U") ', '', 'nie usuwaj');
przyciskiDodaj(el, 'spamer', 'usertalk_text("spam", 0) ', '', 'przestań wprowadzać zewnętrzne odnośniki do stron');
przyciskiDodaj(el, 'test2', 'usertalk_test(2) ', '', 'nonsensowne edycje');
przyciskiDodaj(el, 'testG', 'usertalk_test("G") ', '', 'tworzenie bezsensownych haseł');
przyciskiDodaj(el, 'test3', 'usertalk_test(3) ', '', 'niszczenie stron');
przyciskiDodaj(el, 'test4', 'usertalk_test(4) ', '', 'ostatnie ostrzeżenie');
przyciskiDodaj(el, 'testP', 'usertalk_test("P") ', '', 'pierwsze i ostatnie ostrzeżenie');
przyciskiDodaj(el, 'test5', 'usertalk_test(5) ', '', 'blokada');
el.appendChild(document.createTextNode(' ')); // odstęp
przyciskiDodaj(el, 'npa', 'usertalk_test("NPA") ', '', 'npa');
przyciskiDodaj(el, 'żart', 'usertalk_test("żart") ', '', 'żart');
przyciskiDodaj(el, 'testL', 'usertalk_test("L") ', '', 'niszczenie linków, szablonów');
przyciskiDodaj(el, 'PE', 'usertalk_test("PE") ', '', 'zabawa paskiem edycji');
przyciskiDodaj(el, 'AD', 'usertalk_test("AD") ', '', 'dodawanie/kasowanie informacji');
el.appendChild(document.createElement('br')); // odstęp
przyciskiDodaj(el, 'podglądaj', 'usertalk_text("podgląd", 0) ', '', 'używaj przycisku Pokaż podgląd przed zapisaniem artykułu');
przyciskiDodaj(el, 'opisuj', 'usertalk_text("testopis", 0) ', '', 'proszę o wypełnianie pola Opis zmian');
przyciskiDodaj(el, 'podpisuj', 'usertalk_text("podpisuj", 1) ', '', 'podpisywanie i odpisywanie');
el.appendChild(document.createTextNode(' ')); // odstęp
przyciskiDodaj(el, 'grafikizew', 'usertalk_text("GrafikiZewnętrzne", 0) ', '', 'nie zamieszczaj linków do grafik zewnętrznych');
przyciskiDodaj(el, 'wstawiaj ek', 'usertalk_text("Wikipedysta:Beau/TestEK", 1) ', '', 'nie kasuj zawartości strony, którą chcesz usunąć');
przyciskiDodaj(el, 'nie komentuj', 'usertalk_text("Wikipedysta:Beau/TestKomentarz", 1) ', '', 'nie umieszczaj komentarzy w treści artykułu');
przyciskiDodaj(el, 'przenoś', 'usertalk_test("Przenieś") ', '', 'nie wolno przenosić stron kopiując jedynie ich treść');
przyciskiDodaj(el, 'ency', 'usertalk_test("Ency") ', '', 'nie dopisuj siebie lub kolegów');
przyciskiDodaj(el, 'nazwa uż.', 'usertalk_text("Wikipedysta:Beau/TestLogin", 1) ', '', 'zmień nazwę użytkownika');
przyciskiDodaj(el, 'linkujące', 'usertalk_text("Wikipedysta:Beau/TestLinkujące", 1) ', '', 'adminie! sprawdzaj linkujące zanim coś skasujesz');
});
function usertalk_test(n)
{
var text;
var summary;
if (n == '0')
{
text = '{' + '{' + 'test|' + wgUserName + '|~~~~}}';
summary = "[[Szablon:test|test]]";
}
else
{
text = '{' + '{' + 'test' + n + '}}~~~~';
summary = "[[Szablon:test" + n + "|test" + n + "]]";
}
document.editform.wpTextbox1.value += text;
if (document.editform.wpSection.value == '')
document.editform.wpSummary.value = summary;
}
function usertalk_text(n, subst)
{
var sufix = '{' + '{' + ( subst ? 'subst:' : '') + n + '}}~~~~';
document.editform.wpTextbox1.value = document.editform.wpTextbox1.value + sufix;
var prefix = n.substr(0, 12) == 'Wikipedysta:' ? '' : 'Szablon:';
if (document.editform.wpSection.value == '')
document.editform.wpSummary.value = "[[" + prefix + n + "|" + n + "]]";
}
// </nowiki> -------------------------------------------
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.