Benutzer:Cembo/monobook.js

Aus Stupidedia, der sinnfreien Enzyklopädie!
Wechseln zu: Navigation, Suche

Wichtig: Nach dem Speichern musst Du deinem Browser sagen, dass er die neue Version laden soll: Mozilla/Firefox: Strg-Shift-R, IE: Strg-F5, Safari: Cmd-Shift-R, Konqueror: F5.

//<nowiki>

Benutzername = "Cembo";
Inhalt = "";
  
function init(){
add2toolbar('javascript:insertTags("<small>","</small>","Kleinen Text einfügen")','http://www.stupidedia.org/images/b/b6/Small.png','Kleinen Text einfügen');
add2toolbar('javascript:insertTags("<big>","</big>","Großen Text einfügen")','http://www.stupidedia.org/images/c/cc/Big.png','Großen Text einfügen');
add2toolbar('javascript:ColorOn()', 'http://www.stupidedia.org/images/7/77/Schriftfarbe.png', 'Text einfärben');
add2toolbar('javascript:insertTags("{{IL}}","","")','http://www.stupidedia.org/images/0/0d/Interne_Links.png','Vorlage:IL setzen');
add2toolbar('javascript:insertTags("{{UL}}","","")','http://www.stupidedia.org/images/d/de/Unsinnige_Links.png','Vorlage:UL setzen');
add2toolbar('javascript:insertTags("{{KK}}","","")','http://www.stupidedia.org/images/3/34/Keine_Kategorie.png','Vorlage:KK setzen');
add2toolbar('javascript:insertTags("{{UK}}","","")','http://www.stupidedia.org/images/6/60/VUK.PNG','Vorlage:UK setzen');
add2toolbar('javascript:insertTags("{{R}}","","")','http://www.stupidedia.org/images/a/ab/Rechtschreibung.png','Vorlage:Rechtschreibung setzen');
add2toolbar('javascript:insertTags("{{F}}","","")','http://www.stupidedia.org/images/6/6c/Format.png','Vorlage:Format setzen');
add2toolbar('javascript:insertTags("{{Baustelle}}","","")','http://www.stupidedia.org/images/e/e0/Baustelle.gif','Vorlage:Baustelle setzen');
add2toolbar('javascript:CorrectArticle()', 'http://www.stupidedia.org/images/2/24/Verbesserung.png', 'Verbesserungsvorlage erstellen');
add2toolbar('javascript:WelcomeUser()', 'http://www.stupidedia.org/images/4/42/Welcome.png', 'Benutzer Willkommenheissen');
add2toolbar('javascript:InuseArticle()', 'http://www.stupidedia.org/images/8/85/Inuse.png', 'Inuse erstellen');
add2toolbar('javascript:insertTags("[[Datei:laugth.gif]]","","")','http://www.stupidedia.org/images/8/80/Smiley.png','Smiley setzen');
add2toolbar('javascript:DeleteArticle()', 'http://www.stupidedia.org/images/b/bb/L%C3%B6schen.png', 'Löschvorschlag erstellen');
add2toolbar('javascript:insertTags("{{P}}","","")','http://www.stupidedia.org/images/9/94/Pro.png','Pro setzen');
add2toolbar('javascript:insertTags("{{N}}","","")','http://www.stupidedia.org/images/4/4d/Neut.png','Neutral setzen');
add2toolbar('javascript:insertTags("{{C}}","","")','http://www.stupidedia.org/images/c/c4/Contra.png','Contra setzen');
add2toolbar('javascript:SL()', 'http://www.stupidedia.org/images/2/27/SLD.PNG', 'Sofort-Löschen');
}
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';

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

if(document.title.indexOf('Bearbeiten') == 0)
{
  if (window.addEventListener)
  {
    window.addEventListener("load", init, false);
  }
  else if (window.attachEvent)
    window.attachEvent("onload", init);
}
function ColorOn(){
  var color = prompt("Farbwert eingeben:","");
  if (color){
    var fontCo = '<font color="' + color + '">';
    javascript:insertTags(fontCo,"</font>","Text hier einfügen")
  }
}
function CorrectArticle(){
  Inhalt = document.editform.wpTextbox1.value;
  var iLink = prompt("Interne Links überprüfen?","Keine vorhanden");
  var Category = prompt("Kategorisieren?","Ja");
  var Syntax = prompt("Rechtschreibung verbessern?","Ja, stellenweise");
  var Format = prompt("Formatieren?","Zeilenumbrüche, Aufzählungszeichen und Überschriften setzen");
  var Pictures = prompt("Bilder überprüfen?","Nein");
  var Waise = prompt("Artikel verwaist?","Ja");
  var Comment = prompt("Commentar:","Jetzt im Sonderangebot: [[Spam]]");
  document.editform.wpTextbox1.value = "{{V|" + iLink + "|" + Category + "|" + Syntax + "|" + Format + "|" + Pictures + "|" + Waise + "|" + Comment + "}}" + Inhalt;
  document.editform.wpSummary.value = "Da muss etwas getan werden!";
}
function WelcomeUser(){
  document.editform.wpTextbox1.value = "{{W|" + Benutzername + "}}";
  document.editform.wpSummary.value = "Willkommen in der Stupidedia!";
  if(confirm("Kommentar hinzufügen?"))
  {
    var Comment = prompt("Kommentar:","");
    document.editform.wpTextbox1.value += "<p>P.P.S:" + Comment + " Gruß, ~~~~";
  }
}
function InuseArticle(){
  Inhalt = document.editform.wpTextbox1.value;
  document.editform.wpTextbox1.value = "{{Inuse|" + Benutzername + "}}" + Inhalt;
}
function DeleteArticle(){
  Inhalt = document.editform.wpTextbox1.value;
  document.editform.wpTextbox1.value = "{{Löschen|" + Benutzername + "|{{subst:CURRENTYEAR}}/{{subst:CURRENTMONTH}}/{{subst:CURRENTDAY2}}}}\n" + Inhalt;
  document.editform.wpSummary.value = "[[Vorlage:Löschen|Löschvorschlag]]";
}

function SL(){
  Inhalt = document.editform.wpTextbox1.value; 
  document.editform.wpTextbox1.value = "{{SL}}" + Inhalt;
  document.editform.wpSummary.value = "Nur weil ich gerne SLs setzte bin ich noch lange nicht die Müllabfuhr!";
}

//</nowiki>

Linktipps: Faditiva und 3DPresso