Benutzer:LEOXD/vector.js: Unterschied zwischen den Versionen

Aus Stupidedia, der sinnfreien Enzyklopädie!
Wechseln zu: Navigation, Suche
K (brauch ich nich)
K
Zeile 73: Zeile 73:
 
   Inhalt = document.editform.wpTextbox1.value;  
 
   Inhalt = document.editform.wpTextbox1.value;  
 
   document.editform.wpTextbox1.value = "{{SL|LEOXD}}" + Inhalt;
 
   document.editform.wpTextbox1.value = "{{SL|LEOXD}}" + Inhalt;
   document.editform.wpSummary.value = "[[Vorlage:SL|Sofort weg damit!]]";
+
   document.editform.wpSummary.value = "Wenn man einen Affen unendlich lang tippen lässt, kommt irgendwann Shakespeare raus.";
 
}
 
}
  
Zeile 91: Zeile 91:
 
   Inhalt = document.editform.wpTextbox1.value;
 
   Inhalt = document.editform.wpTextbox1.value;
 
   document.editform.wpTextbox1.value = "{{Baustelle}}" + Inhalt;
 
   document.editform.wpTextbox1.value = "{{Baustelle}}" + Inhalt;
   document.editform.wpSummary.value = "[[Vorlage:Baustelle|im Bau]]";
+
   document.editform.wpSummary.value = "[[Vorlage:Baustelle|Da fehlt schätzungsweise noch ein bisschen.]]";
 
}
 
}
  
Zeile 98: Zeile 98:
 
   document.editform.wpTextbox1.value = "{{Lizenz!}}" + Inhalt;
 
   document.editform.wpTextbox1.value = "{{Lizenz!}}" + Inhalt;
 
   document.editform.wpSummary.value = "Hopp! Auf und lizenzieren!";
 
   document.editform.wpSummary.value = "Hopp! Auf und lizenzieren!";
 
 
}
 
}
 
  
 
function MP3(){
 
function MP3(){
Zeile 110: Zeile 108:
 
   document.editform.wpSummary.value = "[[Stupidedia:Stupid-Audio|+Mp3]]";
 
   document.editform.wpSummary.value = "[[Stupidedia:Stupid-Audio|+Mp3]]";
 
}
 
}
 +
 
function Pro(){
 
function Pro(){
 
   var mark = '{{P}}';
 
   var mark = '{{P}}';
 
   var Comment = prompt("Kommentar?","Behalten!");
 
   var Comment = prompt("Kommentar?","Behalten!");
 
   document.editform.wpTextbox1.value += '' + mark + ' ' + Comment + ' ~~~~\n';
 
   document.editform.wpTextbox1.value += '' + mark + ' ' + Comment + ' ~~~~\n';
   document.editform.wpSummary.value = 'Ja';
+
   document.editform.wpSummary.value = 'Nicht löschwürdig.';
 
 
 
 
 
}
 
}
  
 
function Neutral(){
 
function Neutral(){
 
   var mark = '{{N}}';
 
   var mark = '{{N}}';
   var Comment = prompt("Kommentar?","Bin mir nicht sicher!");
+
   var Comment = prompt("Kommentar?","QO");
 
   document.editform.wpTextbox1.value += '' + mark + ' ' + Comment + ' ~~~~\n';
 
   document.editform.wpTextbox1.value += '' + mark + ' ' + Comment + ' ~~~~\n';
   document.editform.wpSummary.value = 'Vielleicht';
+
   document.editform.wpSummary.value = 'hmm...';
 
}
 
}
  
Zeile 246: Zeile 243:
  
 
function revertme (href) {
 
function revertme (href) {
   var grund=prompt('Grund des Reverts:','Vandalismus');
+
   var grund=prompt('Grund des Reverts:',' ');
 
   if (grund != null) {
 
   if (grund != null) {
 
   href=encodeURI(href+"&action=edit&"+speichernp+"&"+subjp) +  
 
   href=encodeURI(href+"&action=edit&"+speichernp+"&"+subjp) +  
Zeile 349: Zeile 346:
 
     recent_url = wgServer + '/api.php?action=query&format=xml&list=recentchanges&rclimit=' + recent_amount + '&rcprop=user|comment|timestamp|title|sizes|flags|ids&rcshow=!bot';
 
     recent_url = wgServer + '/api.php?action=query&format=xml&list=recentchanges&rclimit=' + recent_amount + '&rcprop=user|comment|timestamp|title|sizes|flags|ids&rcshow=!bot';
 
   if (recent_closebutton == null) recent_closebutton = 'http://www.stupidedia.org/images/a/a0/Minus.gif';
 
   if (recent_closebutton == null) recent_closebutton = 'http://www.stupidedia.org/images/a/a0/Minus.gif';
   if (recent_headcolor == null)  recent_headcolor  = 'grey';
+
   if (recent_headcolor == null)  recent_headcolor  = 'black';
 
   if (recent_fontsize == null)  recent_fontsize  = '8pt';
 
   if (recent_fontsize == null)  recent_fontsize  = '8pt';
 
   if (recent_timezone == null)  recent_timezone  = 1;
 
   if (recent_timezone == null)  recent_timezone  = 1;

Version vom 4. August 2011, 15:35 Uhr

//<pre><nowiki>

rein_damit('addlilink');
rein_damit('indexlink');
rein_damit('loeschvorlage_einfügen');
rein_damit('Sterne');
rein_damit('recent_table');
rein_damit('verbesserung');
rein_damit('cookiework');
rein_damit('hinweise');
rein_damit('add2toolbar');
rein_damit('linkchecker');
rein_damit('bearbeiten');
recent_interval = '5000';

Benutzername = "LEOXD";
Inhalt = "";
  
function init(){
  document.getElementById('mw-editbutton-signature').onclick = function() { insertTags('~~~~', '', ''); };
  add2toolbar('javascript:RedirectArticle2()', 'http://www.stupidedia.org/images/a/a2/Namensartikel.png', 'SL-Redirect');
  add2toolbar('javascript:SL()', 'http://www.stupidedia.org/images/d/d8/Sofort_Loeschen_neu.png', 'SL');
  add2toolbar('javascript:SLA()', 'http://www.stupidedia.org/images/0/06/SL-Autor.png', 'SL Autor');
  add2toolbar('javascript:WelcomeUser()', 'http://www.stupidedia.org/images/4/42/Welcome.png', 'Benutzer Willkommenheissen');
  add2toolbar('javascript:insertTags("<span style=text-decoration:blink;>","</span>","Blinkschrift hier einfügen")','http://www.stupidedia.org/images/8/8c/Blink.PNG','Blinkschrift');
  add2toolbar('javascript:insertTags("{{QO|{{Subst:Datum}}}}","","")','http://www.stupidedia.org/images/5/54/Qualit%C3%A4tsoffensive.png','QO');
  add2toolbar('javascript:Baustelle()', 'http://www.stupidedia.org/images/e/e0/Baustelle.gif', 'Baustelle');
  add2toolbar('javascript:Stub()', 'http://www.stupidedia.org/images/f/fe/Stub.png', 'Stub'); 
  add2toolbar('javascript:Lizenz()', 'http://stupidedia.org/images/d/d3/Editleistenknopf_lizenz.png', 'Lizenz! Sofort!');
  add2toolbar('javascript:NolicenseUser()','http://www.stupidedia.org/images/4/4c/Nolicenseusernb3.png', 'Nolicense-User-Diskussionsvorlage');
  add2toolbar('javascript:UsePreview();','http://www.stupidedia.org/images/7/75/Preview.png','Vorschau-Button benutzen');  
  add2toolbar('javascript:MP3()','http://www.stupidedia.org/images/9/96/Note-Button.png','Soundfile einbinden');
  add2toolbar('javascript:Pro()','http://www.stupidedia.org/images/9/94/Pro.png', 'Pro setzen');
  add2toolbar('javascript:Neutral()','http://www.stupidedia.org/images/4/4d/Neut.png', 'Neutral setzen');
  add2toolbar('javascript:Contra()','http://www.stupidedia.org/images/c/c4/Contra.png', 'Contra setzen');
  add2toolbar('javascript:FindReplace()', 'http://www.stupidedia.org/images/b/b6/Ersetzen.png', 'Text ersetzen');
  add2toolbar('javascript:Disorphan()', 'http://www.stupidedia.org/images/0/00/Disorphan.PNG', 'Entwaisen');
}
function add2toolbar(url, bild, titel)
{
  var container = document.getElementById('toolbar');
  var link = document.createElement('a');
  link.href = url;
  link.title = titel;

  var image = document.createElement('img');
  image.src = bild;
  image.style.height = '22px';
  image.style.width = '23px';

  link.appendChild(image);
  container.appendChild(link);
}

if(global.bearbeitend)
{
  if (window.addEventListener)
  {
    window.addEventListener("load", init, false);
  }
  else if (window.attachEvent)
    window.attachEvent("onload", init);

}

function RedirectArticle2(){
  var DirectSite = prompt("Zielartikel?","Unlustig");
  document.editform.wpTextbox1.value = "#REDIRECT [[" + DirectSite + "]]\n[[Kategorie:Stupidedia:Löschkandidaten|!]]\n\n" + Inhalt;
  document.editform.wpSummary.value = "Wenn ein Vandale nicht aufhören will, fordert es drastische Maßnahmen";
}

function SL(){
  Inhalt = document.editform.wpTextbox1.value; 
  document.editform.wpTextbox1.value = "{{SL|LEOXD}}" + Inhalt;
  document.editform.wpSummary.value = "Wenn man einen Affen unendlich lang tippen lässt, kommt irgendwann Shakespeare raus.";
}

function Stub(){
  Inhalt = document.editform.wpTextbox1.value;
  document.editform.wpTextbox1.value = "{{Stub|{{Subst:Datum}}}}\n" + Inhalt;
  document.editform.wpSummary.value = "[[Vorlage:Stub|Stub]]";
}

function WelcomeUser(){
  Inhalt = document.editform.wpTextbox1.value;
  document.editform.wpTextbox1.value = "{{W|" + Benutzername + "}}" + Inhalt;
  document.editform.wpSummary.value = "Moin aus Dänemark!";
}

function Baustelle(){
  Inhalt = document.editform.wpTextbox1.value;
  document.editform.wpTextbox1.value = "{{Baustelle}}" + Inhalt;
  document.editform.wpSummary.value = "[[Vorlage:Baustelle|Da fehlt schätzungsweise noch ein bisschen.]]";
}

function Lizenz(){
  Inhalt = document.editform.wpTextbox1.value;
  document.editform.wpTextbox1.value = "{{Lizenz!}}" + Inhalt;
  document.editform.wpSummary.value = "Hopp! Auf und lizenzieren!";
}

function MP3(){
  Inhalt = document.editform.wpTextbox1.value;
  var filename = prompt("Dateiname?",".mp3");
  var autostart = prompt("Automatisch abspielen? yes - no (klein schreiben!!)","no");
  var loop = prompt("Wiederholung/Schleife anschalten? yes - no (klein schreiben!!)","no");
  document.editform.wpTextbox1.value = "<flashmp3>" + filename + "|autostart=" + autostart + "|loop=" + loop + "</flashmp3>\n" + Inhalt;
  document.editform.wpSummary.value = "[[Stupidedia:Stupid-Audio|+Mp3]]";
}

function Pro(){
  var mark = '{{P}}';
  var Comment = prompt("Kommentar?","Behalten!");
  document.editform.wpTextbox1.value += '' + mark + ' ' + Comment + ' ~~~~\n';
  document.editform.wpSummary.value = 'Nicht löschwürdig.';
}

function Neutral(){
  var mark = '{{N}}';
  var Comment = prompt("Kommentar?","QO");
  document.editform.wpTextbox1.value += '' + mark + ' ' + Comment + ' ~~~~\n';
  document.editform.wpSummary.value = 'hmm...';
}

function Contra(){
  var mark = '{{C}}';
  var Comment = prompt("Kommentar?","Ab in die Tonne! ");
  document.editform.wpTextbox1.value += '' + mark + ' ' + Comment + ' ~~~~\n';
  document.editform.wpSummary.value = 'Ein Löschschwert!';
}

function SLA(){
  Inhalt = document.editform.wpTextbox1.value;
  document.editform.wpTextbox1.value = "{{SLA|" + Benutzername + "}}" + Inhalt;
  document.editform.wpSummary.value = "Hinweis für SL-Autor";
}

function NolicenseUser(){
  Inhalt = document.editform.wpTextbox1.value;
  document.editform.wpTextbox1.value = Inhalt + "{{Nolicenseuser|" + Benutzername + "}}";
  document.editform.wpSummary.value = "";
}

function UsePreview(){
  var Article = prompt('Gemeinter Artikel');
  if(Article != ''){
    Inhalt = document.editform.wpTextbox1.value;
    document.editform.wpTextbox1.value = Inhalt + '{{Vorschau|' + Article + '}} ~~~~\n ';
    document.editform.wpSummary.value = "[[Vorlage:Vorschau|Erst gucken, dann speichern!]]";
  }
}
function FindReplace(){
  var s = prompt("Folgendes ersetzen:");
  if(s){
    var r = prompt("Ersetzen durch:");
    if(!r && r != '') return;
    var txt = document.editform.wpTextbox1; 
    if (!arguments.callee.sRE) {
      var specials = ['/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\'];
      arguments.callee.sRE = new RegExp('(\\' + specials.join('|\\') + ')', 'g');
    }
    var pattern = s.replace(arguments.callee.sRE, '\\$1');
    txt.value = txt.value.replace(new RegExp(pattern, 'g'), r);
  }
}

function Disorphan(){
  var s = prompt("Folgendes entwaisen:");
  if(s){
    var txt = document.editform.wpTextbox1;
    txt.value = txt.value.replace(new RegExp(s), '[[' + s + ']]');
  }
}


/* LINKLEISTE */

function motivation(){

var Bearbeiten = '&nbsp;<a href="http://www.stupidedia.org/stupi/' + wgPageName + '?action=edit">Bearbeiten</a>&nbsp;'
var Verschieben = '&nbsp;<a href="http://www.stupidedia.org/stupi/Spezial:Verschieben/' + wgPageName + '">Verschieben</a>&nbsp;'
var Versionen = '&nbsp;<a href="http://www.stupidedia.org/stupi/' + wgPageName + '?action=history">Versionen</a>&nbsp;'
var Löschkandidaten = '&nbsp;<a href="http://www.stupidedia.org/stupi/Kategorie:Stupidedia:Löschkandidaten">Löschkandidaten</a>&nbsp;'
var Userportal = '&nbsp;<a href="http://www.stupidedia.org/stupi/Stupidedia Diskussion:Userportal">Userportal</a>&nbsp;'
var Ideenwelt = '&nbsp;<a href="http://www.stupidedia.org/stupi/Stupidedia:Ideenwelt">Ideenwelt</a>&nbsp;'
var Routine = '&nbsp;<a href="http://www.stupidedia.org/stupi/Stupidedia:Routine">Routine</a>&nbsp;'
}

if (window.addEventListener)
  window.addEventListener("load", motivation, false);
else if (window.attachEvent)
  window.attachEvent("onload", motivation);

/* REVERT */

// Natürlich alles von den Wikipedia-Experten ge... geborgt. Diesmal Berlin-Jurist und Littl.

var subjp      = 'subj=';
var textp      = 'txt=';
var speichernp = 'speichern=1';

function AddLinksToOldVersionLinks()
{ 
// Set up the text of your Edit Link
  var Edit = '(edit)';
  var Rv   = '(rv)';
  // Iterate over all "<a"
  for (var i=0; aNode = document.getElementById('bodyContent').getElementsByTagName("a")[i]; i++)
  { // if it's a link to an old version but not a diff-link
    if ( (href = aNode.getAttribute("href")) && 
         (href.search(/oldid=/) != -1) && 
         (href.search(/diff=/) == -1) &&
         (href.search(/action=edit/) == -1)
//       &&  (aNode.parentNode.tagName.id == "bodyContent") <- tutsnich
       )
    { // Create Edit Link (if we're on a history)
     if(document.URL.indexOf('history') > 0){
      var EditNode = document.createElement('a');
      EditNode.setAttribute('href', href + '&action=edit#summary'); 
      var EditTextNode = document.createTextNode(Edit);
      EditNode.appendChild(EditTextNode);
      // Add Edit Link To Old Version Link
      aNode.parentNode.insertBefore( EditNode, aNode.nextSibling );
      // Insert whitespace before Edit Link
      aNode.parentNode.insertBefore( document.createTextNode(' '), aNode.nextSibling );
      // jump over inserted <a-Link
      i++;
     }
      
       // Create RV Link (in both cases)
      var Rvnode = document.createElement('a');
      Rvnode.setAttribute('href', 'javascript:revertme("'+href+'")');
      Rvnode.setAttribute('title', 'diese Version wiederherstellen');   
      var RvTextNode = document.createTextNode(Rv);
      Rvnode.appendChild(RvTextNode);
      aNode.parentNode.insertBefore( Rvnode, aNode.nextSibling );
      aNode.parentNode.insertBefore( document.createTextNode(' '), aNode.nextSibling );      
      // jump over inserted <a-Link
      i++;
    }
  }
}

function revertme (href) {
  var grund=prompt('Grund des Reverts:',' ');
  if (grund != null) {	
   href=encodeURI(href+"&action=edit&"+speichernp+"&"+subjp) + 
        encodeURIComponent("AntiVandal: "+grund);
   top.location.href = href;
  }  
}	

function aktion() {
 var href=document.URL;
 if ( href.indexOf (subjp) > 0)  //sind wir auf der richtigen Seite ?
 { 
  href = decodeURI(href);
  var params = href.split ('&');
  var speichern = false;

  for (var i=1; i<params.length; i++) //parameter suchen
   { 
    if (params[i].substring(0,subjp.length) == subjp) {
       var subj=decodeURIComponent ( params[i].substring(subjp.length,9999) );
       document.editform.wpSummary.value=subj; //und einfuegen
     }
    
    if (params[i].substring(0,textp.length) == textp) {
       var text=decodeURIComponent ( params[i].substring(textp.length,9999) );
       document.editform.wpTextbox1.value=text; //und einfuegen
     }
 
    if (params[i].substring(0,speichernp.length) == speichernp) { speichern = true; }

   } //for
   if (speichern) { document.editform.wpSave.click(); }
   
 }  
} //function aktion

function init_links(){
if ( (document.URL.indexOf('diff') > 0) || (document.URL.indexOf('history') > 0)){
AddLinksToOldVersionLinks();
}
else{
aktion();
}
}


 if (window.addEventListener) window.addEventListener("load", init_links, false);
 else if (window.attachEvent) window.attachEvent("onload", init_links);

//

//Recentbox
var recent_interval = '5000';

var recent_intervalHost;
var recent_url;
var recent_cookieName = 'wiki_extensionShowRChanges';
var recent_boxheight;     var recent_timezone;
var recent_backcolor;     var recent_fontsize
var recent_headcolor;     var recent_plusButton;
var recent_interval;      var recent_plusButton;
var recent_closebutton;   var recent_amount;
var recent_plusButton;    var recent_plusdirec;

// Temporär, bis man sich darauf verlassen kann, dass die neue Cookie-Maschine bei allen eingebunden ist, werden die Funktionen hier überschrieben, sofern cookie verfügbar ist.
if(typeof cookie == 'object'){
  function readCookie(name){
    return cookie.get(name);
  }
  function setCookie(name, value){
    return cookie.set(name, value);
  }
}

if (window.addEventListener)
  window.addEventListener("load", recent_init, false);
else if (window.attachEvent)
  window.attachEvent("onload", recent_init);

function recent_init(){
  
  if(wgCanonicalSpecialPageName == "Recentchanges")
    return;

  var condition;
  if(condition = readCookie(recent_cookieName)){
    if (condition == 'show'){
      recent_show();
    } else {
      recent_hide();
    }
  } else { // Cookie wurde nicht gefunden. Cookie gesetzt und RCanges zeigen.
    recent_show();
  }
}

function recent_show(){
  if (recent_boxheight == null)   recent_boxheight   = 100;
  if (recent_backcolor == null)   recent_backcolor   = 'white';
  if (recent_interval == null)    recent_interval    = '10000';
  if (recent_amount == null)      recent_amount      = 10;
    recent_url = wgServer + '/api.php?action=query&format=xml&list=recentchanges&rclimit=' + recent_amount + '&rcprop=user|comment|timestamp|title|sizes|flags|ids&rcshow=!bot';
  if (recent_closebutton == null) recent_closebutton = 'http://www.stupidedia.org/images/a/a0/Minus.gif';
  if (recent_headcolor == null)   recent_headcolor   = 'black';
  if (recent_fontsize == null)   recent_fontsize   = '8pt';
  if (recent_timezone == null)   recent_timezone   = 1;
  
  if (document.getElementById('recent_pluslink')){
    document.getElementById('recent_pluslink').parentNode.removeChild(document.getElementById('recent_pluslink'));
  }
  
  // Dummy-div am Seitenende erstellen, damit ganze Seite erreichbar bleibt
  var dummy = document.createElement('div');
  dummy.id = 'recent_dummy';
  with (dummy.style){
    height = recent_boxheight + 20 + 'px';
    width  = '100%';
  }
   document.getElementsByTagName('body')[0].insertBefore(dummy, document.getElementById("footer"));
  
  // Recentchange-Container erstellen
  var container = document.createElement('div');
  container.id = 'recent_recentbox';
  with (container.style){
    height    = recent_boxheight + 20 + 'px';
    border    = 'none';
    position  = 'fixed';
    bottom    = '0px';
    width     = '100%';
    padding   = '0px';
    zIndex    = 25;
  }
  
  // Kopf des Recentchange-Containers
  var container_header = document.createElement('div');
  container_header.id = 'recent_header';
  with (container_header.style){
    height     = '20px';
    width      = '100%';
    background = recent_headcolor;
  }
  // Schließen-Button
  var closebutton = document.createElement('img');
  with (closebutton){
    src = recent_closebutton;
    alt = 'Schliessen';
    style.height  = '20px';
  }
  // Link zum schließen der Box
  var closelink = document.createElement('a');
  closelink.href = 'javascript:recent_hide()';
  with (closelink.style){
    height = '20px';
    cssFloat  = 'right';
  }
  
  // Beschriftung der Titelleiste
  var headertitle = document.createElement('span');
  with (headertitle){
    innerHTML = 'Letzte Änderungen - Refresh-Zeit: '+ recent_interval/1000 + 'Sek. - Anzeige der letzten ' + recent_amount + ' Änderungen';
    style.cssFloat  = 'left';
    style.height = '20px';
    style.paddingLeft = '1em';
  }
  // Container-Inhalt
  var container_content = document.createElement('div');
  with (container_content){
    id    = 'recent_container';
    style.width           = '100%';
    style.height          = recent_boxheight + 'px';
    style.background      = recent_backcolor;
    style.overflow        = 'auto';
    innerHTML = 'Lade gerade...';
  }
  
  // Elemente zusammensetzen
  container_header.appendChild(headertitle);
  closelink.appendChild(closebutton);
  container_header.appendChild(closelink);
  container.appendChild(container_header);
  container.appendChild(container_content);
   document.getElementsByTagName('body')[0].insertBefore(container, document.getElementById("footer"));
  setCookie(recent_cookieName,'show');
  recent_execute();
  recent_intervalHost = window.setInterval('recent_execute()',recent_interval);

}

function recent_hide(){
  if (recent_plusButton == null)   recent_plusButton   = 'http://www.stupidedia.org/images/7/72/Plus.gif';
  if (recent_plusdirec == null)   recent_plusdirec   = 'left';

  if (document.getElementById('recent_recentbox')){
    document.getElementById('recent_recentbox').parentNode.removeChild(document.getElementById('recent_recentbox'));
    document.getElementById('recent_dummy').parentNode.removeChild(document.getElementById('recent_dummy'));
    window.clearInterval(recent_intervalHost);
  }
  var plusButton = document.createElement('img');
  plusButton.src = recent_plusButton;
  plusButton.alt = 'Öffnen';
  var pluslink = document.createElement('a');
  pluslink.href = 'javascript:recent_show()';
  pluslink.id   = 'recent_pluslink';
  with (pluslink.style){
    position = 'fixed';
    bottom   = '0px';
    zIndex   = 25;
    if (recent_plusdirec == 'left'){
      left = '0px';
    } else{
      right = '0px';
    }
  }
  
  pluslink.appendChild(plusButton);
   document.getElementsByTagName('body')[0].insertBefore(pluslink, document.getElementById("footer"));
  setCookie(recent_cookieName,'hide');
}

function recent_execute(){
  var recent_container = document.getElementById('recent_container');
  var request = sajax_init_object();
  request.abort();
  request.open('GET',recent_url, true);
  request.send('');
  request.onreadystatechange = function(){
    if (request.readyState == 4){
      recent_container.innerHTML = '';
      if (request.status == 200){
	var table = document.createElement('table');
	with (table.style){
	  width = '100%';
	  fontSize = recent_fontsize;
	  background = recent_backcolor;
	  padding = '0px';
	  margin = '0px';
	  borderCollapse = 'collapse';
	  borderSpacing = '0px';
	}
	var list = request.responseXML.getElementsByTagName('rc');
	for (var i=0;i<list.length;i++){
	  var row = document.createElement('tr');
	  with (row.style){
	    background   = 'none';
	    padding      = '0px';
	    marginBottom = '0px';
	    borderBottom = '1px solid black';
	    verticalAlign = 'top';
	  }
	  var dstr; // Dummy-String, um die einzelnen Befehle kürzer schreiben zu können
	  var saddr = wgServer + '/stupi/'; // s.o.
	  
	  var timestamp = document.createElement('td');
	  with (timestamp.style){
	    width = '60px';
	    padding = '0px';
	    margin = '0px';
	    paddingLeft = '1px';
	  }
	  dstr = parseInt(list[i].getAttribute('timestamp').slice(11,13))+recent_timezone;
	  timestamp.innerHTML = dstr.toString() + list[i].getAttribute('timestamp').slice(13,19);
	  row.appendChild(timestamp);
	  var sizechange = document.createElement('td');
	  var articlesize = parseInt(list[i].getAttribute('newlen')) - parseInt(list[i].getAttribute('oldlen'));
          if(articlesize > 0) articlesize = '+' + articlesize;
	  with (sizechange.style){
	    width = '40px';
	    padding = '0px';
	    margin = '0px';
            if (articlesize < 0) {color = 'red';}
	    else if (articlesize == 0){color = '#606060';}
	    else {color = 'green';}
	  }
	  if (list[i].getAttribute('ns') != '-1')
           {
           if (list[i].getAttribute('type') == 'log')
            {sizechange.innerHTML += '<span style="font-weight:bold; color:black">Log</span>';}
           else
            {sizechange.innerHTML = '(' + articlesize + ')';}
           }
	  row.appendChild(sizechange);
	  var article = document.createElement('td');
	  with (article.style){
	    padding = '0px';
	    margin = '0px';
	  }
	  dstr = list[i].getAttribute('title');
          var dstr_code = encodeURIComponent(dstr).replace(/%2F/g, '/');
	  if (list[i].getAttribute('ns') != '-1'){
	    if (list[i].getAttributeNode('new') != undefined) article.innerHTML = '<span style="font-weight:bold">N</span> ';
	    if (list[i].getAttributeNode('minor') != undefined) article.innerHTML += '<span style="font-weight:bold">K</span> ';
	    article.innerHTML += '<a href="'+saddr+dstr_code+'" title="'+dstr+'">'+dstr+'</a> (<a href="'+saddr+dstr_code+'?diff='+list[i].getAttribute('revid')+'&oldid='+list[i].getAttribute('old_revid')+'" title="Unterschied">U</a>|<a href="'+saddr+dstr_code+'?action=history" title="Versionen">V</a>)';
	  } else {
	    dstr = list[i].getAttribute('title').slice(16);
	    if (dstr == 'block') var dstr2 = 'Benutzersperre';
	    if (dstr == 'upload') var dstr2 = 'Dateiupload';
	    if (dstr == 'import') var dstr2 = 'Seite importiert';
	    if (dstr == 'delete') var dstr2 = 'Seite gelöscht';
	    if (dstr == 'patrol') var dstr2 = 'Seite gecheckt';
	    if (dstr == 'rights') var dstr2 = 'Benutzerrechte eines Users geändert';
	    if (dstr == 'protect') var dstr2 = 'Seitenschutz-Status verändert';
	    if (dstr == 'move') var dstr2 = 'Seite verschoben';
	    if (dstr == 'newusers') var dstr2 = 'Benutzeranmeldung';
	    article.innerHTML = '<a href="'+saddr+'Spezial:Logbuch/'+dstr_code+'" title="'+dstr2+'">'+dstr2+'</a>';
	  }
	  list[i].getAttribute('title');
	  row.appendChild(article);
	  var user = document.createElement('td');
	  with (user.style){
	    width = '180px';
	    padding = '0px';
	    margin = '0px';
	  }
	  dstr = list[i].getAttribute('user');
	  var sperrLink = global.diktator ? '|<a href="'+saddr+'Spezial:Sperren/'+dstr+'" title="Benutzer Sperren">S</a>' : '';
	  if (list[i].getAttributeNode('anon') != undefined){
	    user.innerHTML = '<span style="font-weight:bold">IP</span> ';
	    user.innerHTML += '<a href="'+saddr+'Benutzer_Diskussion:'+dstr+'" title="IP-Diskussion:'+dstr+'">'+dstr+'</a> (<a href="'+saddr+'Spezial:Beiträge/'+dstr+'" title="Beiträge des Benutzers">B</a>'+sperrLink+')';
	  } else {
	    user.innerHTML += '<a href="'+saddr+'Benutzer:'+dstr+'" title="Benutzer:'+dstr+'">'+dstr+'</a> (<a href="'+saddr+'Benutzer Diskussion:'+dstr+'" title="Diskussion des Benutzers">D</a>|<a href="'+saddr+'Spezial:Beiträge/'+dstr+'" title="Beiträge des Benutzers">B</a>'+sperrLink+')';
	  }
	  row.appendChild(user);
	  var comment = document.createElement('td');
	  with (comment.style){
	    padding = '0px';
	    margin = '0px';
	  }
	  if (list[i].getAttribute('comment') != null){
	    var linkstart = 0; var linkend = 0;
	    do{
	      linkstart = list[i].getAttribute('comment').indexOf('[[',linkend)
	      if(linkstart != -1){
	        comment.appendChild(document.createTextNode(list[i].getAttribute('comment').slice(linkend,linkstart)));
		if (list[i].getAttribute('comment').indexOf(']]',linkstart) != -1){
	          linkend = list[i].getAttribute('comment').indexOf(']]',linkstart)+2;
	          var linkcontent = list[i].getAttribute('comment').slice(linkstart,linkend);
		  var wikilink = document.createElement('a');
	          if (linkcontent.indexOf('|') == -1){
	            var linkarticle = linkcontent.slice(2,linkcontent.length - 2);
		    wikilink.href = saddr+linkarticle;
		    wikilink.title = linkarticle;
		    wikilink.innerHTML = linkarticle;
	            comment.appendChild(wikilink);
	          } else {
	            var linkarticle = linkcontent.slice(2,linkcontent.indexOf('|'));
	            var linkdesc = linkcontent.slice(linkcontent.indexOf('|')+1,linkcontent.length - 2);
		    wikilink.href = saddr+linkarticle;
		    wikilink.title = linkarticle;
		    wikilink.innerHTML = linkdesc;
	            comment.appendChild(wikilink);
	          }
		} else {
		  comment.appendChild(document.createTextNode(list[i].getAttribute('comment').slice(linkstart)));
		  linkstart = -1;
		}
              } else {
	        comment.appendChild(document.createTextNode(list[i].getAttribute('comment').slice(linkend)));
              }
	    } while (linkstart != -1);
	  }
	  row.appendChild(comment);
	  table.appendChild(row);
	}
	recent_container.appendChild(table);
      } else {
        recent_container.innerHTML = 'Bei dem Versuch, den Server abzufragen trat der Fehler ' + request.status + ' auf.';
      }
    }
  }
}

/* BLINKEN DES SC-STERNS ABSCHALTEN */
/* function blinknicht(){
 *  document.getElementById('goldstar-blink').getElementsByTagName('img')[0].src = 'http://www.stupidedia.org/images/6/66/Gold-klein.gif';
 * }
 * addOnload(blinknicht);
 */
//</nowiki></pre>

Linktipps: Faditiva und 3DPresso