Benutzer:JuliusHermann/common.js: Unterschied zwischen den Versionen

Aus Stupidedia, der sinnfreien Enzyklopädie!
Wechseln zu: Navigation, Suche
K (hat Benutzer:JuliusHermann/vector.js nach Benutzer:JuliusHermann/common.js gepflanzt)
K
Zeile 1: Zeile 1:
 
//<pre>
 
//<pre>
 
// WikEd
 
document.write('<script type="text/javascript" src="'
 
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
 
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
  
 
// Irgendwelches Zeug von Lt. Simpson
 
// Irgendwelches Zeug von Lt. Simpson

Version vom 14. Oktober 2013, 22:51 Uhr

//<pre>

// Irgendwelches Zeug von Lt. Simpson
importScript('Benutzer:Lt._Simpson/monobook.js/Delbacklist.js');

// Linkleiste

gPlb.links.push({ target: 'Spezial:Newpages', text: 'Neues' });
gPlb.links.push({ target: 'Spezial:Newimages', text: 'Newpics' });
gPlb.links.push({ target: 'Spezial:Letzte Änderungen', text: 'L-Ä' });
gPlb.links.push({ target: 'Stupidedia:Routine', text: 'Routine' });
gPlb.links.push({ target: 'Benutzer:JuliusHermann/Labor', text: 'Labor' });
gPlb.links.push({ target: 'Kategorie:Stupidedia:Wartung', text: 'Wartung' });
gPlb.links.push({ target: 'Kategorie:Stupidedia:Löschkandidaten', text: 'Löschen' });
gPlb.links.push({ target: 'Kategorie Diskussion:Stupidedia:Vorbildhafte Artikel', text: 'V-Artikel' });

gPlb.style.fontSize = '8pt';
gPlb.style.backgroundColor = 'lightgreen';
gPlb.style.border = '1px solid black';
gPlb.style.fontWeight = 'normal';
gPlb.style.color = 'blue';

// Nur neu erstellte Seiten in den Benutzerbeiträgen anzeigen

function irgendwasFuerJuHe() {
  var contribs = document.getElementsByTagName("ul")[0].getElementsByTagName("li");
  for ( var i = 0; i < contribs.length; i++ ) {
    if ( contribs[i].getElementsByTagName("abbr").length == 0 || contribs[i].getElementsByTagName("abbr")[0].className != 'newpage' ) {
      contribs[i].setAttribute("style", "display: none;");
    }
  }
}

function juliusKnopp() {
  var span = document.createElement("span");
  span.innerHTML = ' | <a href="javascript:irgendwasFuerJuHe()">Nur neue Seiten anzeigen</a>';
  document.getElementById("contentSub").insertBefore(span, document.getElementById("contentSub").lastChild);
}

if ( wgCanonicalSpecialPageName == 'Contributions' || wgCanonicalSpecialPageName == 'DeletedContributions' ) {
  addOnload(juliusKnopp);
}

//</nowiki></pre>

Linktipps: Faditiva und 3DPresso