Benutzer:Nette nachbarin/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.

//<pre><nowiki>
/*
  Skript von meistermichi und noch irgendwem wo ich nich weiss wer...
*/
rein_damit('verbesserung');
rein_damit('addlilink');
rein_damit('add2toolbar');
rein_damit('indexlink');
rein_damit('lastdiff');
rein_damit('rv2version');
rein_damit('smileys');
rein_damit('bearbeiten');

Benutzername = "nette_nachbarin";
Inhalt = "";

function init(){
  add2toolbar('javascript:RedirectArticle()', 'http://img326.imageshack.us/img326/55/buttonredirectxp4.png', 'Weiterleitung erstellen');
  add2toolbar('javascript:CorrectArticle()', 'http://img170.imageshack.us/img170/1378/correctei4.png', 'Verbesserungsvorlage erstellen');
  add2toolbar('javascript:DeleteArticle()', 'http://img170.imageshack.us/img170/451/deletezb0.png', 'Löschvorschlag erstellen');
  add2toolbar('javascript:Insider()', 'http://img368.imageshack.us/img368/6178/smallbuttoninsiderce9.png', 'Insider');
  add2toolbar('javascript:InuseArticle()', 'http://img170.imageshack.us/img170/6927/inusetq2.png', 'Inuse erstellen');
  add2toolbar('javascript:WelcomeUser()', 'http://img92.imageshack.us/img92/1575/welcomeev0.png', 'Benutzer Willkommenheissen');
  add2toolbar('javascript:WIP()', 'http://img294.imageshack.us/img294/1374/welcomeipsr0.png', 'IP Einladen');
  add2toolbar('javascript:insertTags("{{","}}","Gewünschte Vorlage hier einfügen")','http://img301.imageshack.us/img301/7285/templateqg8.png', 'Vorlage einfügen');
  add2toolbar('javascript:insertTags("=== "," ===","Ebene 3 Überschrift")','http://img145.imageshack.us/img145/2334/3levelzf2.png', 'Ebene 3 Überschrift');
  add2toolbar('javascript:FindReplace()', 'http://img139.imageshack.us/img139/5661/suchenqw2.png', 'Text ersetzen');
  add2toolbar('javascript:Extimg()', 'http://img148.imageshack.us/img148/7580/extimgbn0.png', 'Externes Bild');
  add2toolbar('javascript:ColorOn()', 'http://img228.imageshack.us/img228/2421/colorqv3.png', 'Text einfärben');
  add2toolbar('javascript:ColorBackground()', 'http://img87.imageshack.us/img87/4453/colorjv2.png', 'Texthintergrund einfärben');
  add2toolbar('javascript:insertTags("<s>","</s>","Durchgestrichenen Text hier einfügen")','http://img271.imageshack.us/img271/6781/outcrossdc9.png','Durchgestrichenen Text einfügen');
  add2toolbar('javascript:insertTags("<u>","</u>","Unterstrichenen Text hier einfügen")','http://img79.imageshack.us/img79/9316/underlineab4.png','Unterstrichenen Text einfügen');
  add2toolbar('javascript:insertTags("<big>","</big>","Großen Text einfügen")','http://img520.imageshack.us/img520/1788/bigni8.png','Großen Text einfügen');
  add2toolbar('javascript:insertTags("<small>","</small>","Kleinen Text einfügen")','http://img516.imageshack.us/img516/2382/smalltj4.png','Kleinen Text einfügen');
  add2toolbar('javascript:insertTags("<sub>","</sub>","Tiefgestellten Text einfügen")','http://img520.imageshack.us/img520/192/submb8.png','Tiefgestellten Text einfügen');
  add2toolbar('javascript:insertTags("<sup>","</sup>","Hochgestellten Text einfügen")','http://img105.imageshack.us/img105/8396/suphq6.png','Hochgestellten Text einfügen');
  add2toolbar('javascript:insertTags("<center>","</center>","Zentrieren")','http://img91.imageshack.us/img91/7515/centerod6.png','Zentrieren');
  add2toolbar('javascript:insertTags("<br>","","")','http://img120.imageshack.us/img120/3748/zeilumbruchpg2.png','Zeilenumbruch');
  add2toolbar('javascript:insertTags("<br style=clear:both />","","")','http://img214.imageshack.us/img214/7295/absatziq7.png','Großabsatz setzen');
  add2toolbar('javascript:Message()', 'http://img91.imageshack.us/img91/9073/messagerk6.png', 'Mitteilung schreiben');
  add2toolbar('javascript:Stop()', 'http://img109.imageshack.us/img109/3127/stopsx4.png', 'Stop Warnung setzen');
  add2toolbar('javascript:Baustelle()', 'http://www.stupidedia.org/images/e/e0/Baustelle.gif', 'Baustelle');
  add2toolbar('javascript:SL()', 'http://img296.imageshack.us/img296/529/slqm2.png', 'Sofort-Löschen');
  add2toolbar('javascript:UsePreview();','http://img265.imageshack.us/img265/1580/vorschaupf0.png','Autor soll den Vorschau-Button benutzen');
  add2toolbar('javascript:Laecheln()', 'http://img509.imageshack.us/img509/8703/buttonlchelnfl8.png', 'Lächeln schenken');
  add2toolbar('javascript:Lachen()', 'http://img529.imageshack.us/img529/7392/buttonlachenjy7.png', 'Du bringst mich zum Lachen');
  add2toolbar('javascript:Knutsch()', 'http://img509.imageshack.us/img509/5263/buttonknutschkv7.png', '*Knutsch*');
  add2toolbar('javascript:Gluecklich()', 'http://img509.imageshack.us/img509/6310/buttonhimbeernr6.png', 'Du machst mich glücklich!');
  add2toolbar('javascript:Biene()', 'http://www.stupidedia.org/images/0/06/Biene.PNG', 'Fleißiges Bienchen!');
  add2toolbar('javascript:InsertALS()', 'http://www.stupidedia.org/images/a/ab/Rechtschreibung.png', 'Bild als ALS deklarieren');
}

if(document.title.indexOf('Bearbeiten') == 0)
{
  if (window.addEventListener)
  {
    window.addEventListener("load", init, false);
  }
  else if (window.attachEvent)
    window.attachEvent("onload", init);
}

function Message(){
  Inhalt = document.editform.wpTextbox1.value;
  var Nachricht = prompt("Text der Nachricht?","Hier Nachricht schreiben");
  document.editform.wpTextbox1.value = "{{M|" + Benutzername + "|" + Nachricht + "}}" + Inhalt;
  document.editform.wpSummary.value = "Message";
}

function RedirectArticle(){
  var DirectSite = prompt("Zielartikel?","Unlustig");
  document.editform.wpTextbox1.value = "#Redirect [[" + DirectSite + "]]";
  document.editform.wpSummary.value = "Redirect nach [[" + DirectSite + "]]";
}
function CorrectArticle(){
  Inhalt = document.editform.wpTextbox1.value;
  var iLink = prompt("Interne Links überprüfen?","Einfügen, da 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 Comment = prompt("Commentar:","Jetzt im Sonderangebot: [[Spam]]");
  document.editform.wpTextbox1.value = "{{V|" + iLink + "|" + Category + "|" + Syntax + "|" + Format + "|" + Pictures + "|" + Comment + "}}" + Inhalt;
  document.editform.wpSummary.value = "Verbesserungsprogramm";
}
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:CURRENTDAY}}}}\n" + Inhalt;
  document.editform.wpSummary.value = "Löschvorschlag";
}

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

function WelcomeUser(){
  document.editform.wpTextbox1.value = "{{W|" + Benutzername + "}}" + Inhalt;
  document.editform.wpSummary.value = "Welcome";
  if(confirm("Kommentar hinzufügen?"))
  {
    var Comment = prompt("Kommentar:","");
    document.editform.wpTextbox1.value += "<p>P.P.S: " + Comment + "<br>~~~~";
  }
}
function WIP(){
  document.editform.wpTextbox1.value = "{{WIP|" + Benutzername + "}}" + Inhalt;
  document.editform.wpSummary.value = "Lust anzumelden?";
  if(confirm("Kommentar hinzufügen?"))
  {
    var Comment = prompt("Kommentar:","");
    document.editform.wpTextbox1.value += "<p>P.P.S:" + Comment + "~~~~";
  }
}

function Stop(){
  document.editform.wpTextbox1.value = '{{Stupid}}';
  document.editform.wpSummary.value = "[[Vorlage:Stupid|Naja, nicht so ganz das Wahre...]]";
}

function Baustelle(){
  Inhalt = document.editform.wpTextbox1.value;
  document.editform.wpTextbox1.value = "{{Baustelle}}" + Inhalt;
  document.editform.wpSummary.value = "Da passiert doch hoffentlich noch was...";
}

function SL(){
  Inhalt = document.editform.wpTextbox1.value; 
  document.editform.wpTextbox1.value = "{{SL}}" + Inhalt;
  document.editform.wpSummary.value = "Sofort Löschen!!";
}

function FindReplace(){
  var s = prompt("Folgendes ersetzen:");
  if(s){
    var r = prompt("Ersetzen durch:");
    if(!r && r != '') return;
    var txt = document.editform.wpTextbox1;
    txt.value = txt.value.replace(new RegExp(s, "g"), r);
  }
}

function Extimg(){
  var name = prompt("Bildbeschreibung:","");
  if (name){
    var description = '|' + name + '}}';
    javascript:insertTags('{{Extimg|',description,"Bild-URL hier einfügen");
  }
}

function ColorOn(){
  var color = prompt("Farbwert eingeben:","");
  if (color){
    var fontCo = '<font color="' + color + '">';
    javascript:insertTags(fontCo,"</font>","Text hier einfügen")
  }
}
function ColorBackground(){
  var color = prompt("Farbwert eingeben:","");
  if (color){
    var fontCo = '<font style="background:' + color + '">';
    javascript:insertTags(fontCo,"</font>","Text hier einfügen")
  }
}
function UsePreview(){
  var Article = prompt('Gemeinter Artikel');
  if(Article != ''){
    Inhalt = document.editform.wpTextbox1.value;
    document.editform.wpTextbox1.value = '{{Vorschau|' + Article + '}}\n' + Inhalt;
  }
}

function Laecheln(){
  Inhalt = document.editform.wpTextbox1.value;
  document.editform.wpTextbox1.value = "{{Lächeln|" + Benutzername + "}}" + Inhalt;
  document.editform.wpSummary.value = "Ein Lächeln für dich :)";
}

function Lachen(){
  Inhalt = document.editform.wpTextbox1.value;
  var Grund = prompt("Grund angeben","weil du komisch aussiehst.");
  document.editform.wpTextbox1.value = "{{Lachen|" + Grund + "|" + Benutzername + "}}" + Inhalt;
  document.editform.wpSummary.value = "Du bringst mich zum Lachen! :D";
}

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

function Gluecklich(){
  Inhalt = document.editform.wpTextbox1.value;
  var Vorschlag = prompt("Angebot machen","Vielleicht ein Bild?");
  document.editform.wpTextbox1.value = "{{Glücklich|" + Vorschlag + "|" + Benutzername + "}}" + Inhalt;
  document.editform.wpSummary.value = "Du hast ein Himbeerklümpchen glücklich gemacht.";
}

function Biene(){
  Inhalt = document.editform.wpTextbox1.value;
  document.editform.wpTextbox1.value = "{{Biene|" + Benutzername + "}}" + Inhalt;
  document.editform.wpSummary.value = "Fleißiges Bienchen";
}

function InsertALS(){
  Inhalt = document.editform.wpTextbox1.value;
  document.editform.wpTextbox1.value = "{{ALS-Bild|" + Benutzername + "}}" + Inhalt;
  document.editform.wpSummary.value = "Bild ist [[Vorlage:ALS-Bild|ALS]]";
}

//      LINKLEISTE 
function motivation(){
var LinkLoc = '<a href="http://www.stupidedia.org/stupi/';
var links = LinkLoc + 'Spezial:Whatlinkshere/Vorlage:Interne_Links">Aktion IL</a>|'
          + LinkLoc + 'Kategorie:Verbesserung">Verb.</a>|'
          + LinkLoc + 'Vorlage:Hauptseite_Artikelvorschlag">Vorschläge</a>|'
          + LinkLoc + 'Spezial:Lonelypages">Waisen</a>|'
          + LinkLoc + 'Spezial:BrokenRedirects">Redirects</a>|'
          + LinkLoc + 'Spezial:Recentchanges">Last Edits</a>|'
          + LinkLoc + 'Benutzer:Nette nachbarin/Archiv">Spielwiese</a>|'
          + LinkLoc + 'Spezial:Upload">Upload</a>';

var div = document.createElement('div');
div.style.position = 'fixed';
div.style.bottom = '0px';
div.style.right = '20px';
div.style.fontSize = '12pt';
div.style.backgroundColor = 'orange';
div.style.border = '1px solid black';
div.style.fontWeight = 'bolder';
div.style.color = 'blue';
div.innerHTML = links;
var content = document.getElementById('content');
content.appendChild(div);
}

if (window.addEventListener)
  window.addEventListener("load", motivation, false);
else if (window.attachEvent)
  window.attachEvent("onload", motivation);
//</nowiki></pre>

Linktipps: Faditiva und 3DPresso