|
|
Zeile 1: |
Zeile 1: |
− | //<pre><nowiki>
| |
− | Benutzername = "Das-schwarze-Schaf";
| |
− | Inhalt = "";
| |
− |
| |
− | function init(){
| |
− | add2toolbar('javascript:insertTags(" http://www.stupidedia.org/images/e/e1/Vampir-Smilie.gif ","","")','http://www.stupidedia.org/images/8/80/Smiley.png','Smiley setzen');
| |
− | add2toolbar('javascript:Jury()','http://www.stupidedia.org/images/1/13/Jurybutton.png','Contest Beitrag bewerten');
| |
− | add2toolbar('javascript:RedirectArticle()', 'http://www.stupidedia.org/images/9/91/Redirect.png', 'Weiterleitung erstellen');
| |
− | add2toolbar('javascript:CorrectArticle()', 'http://www.stupidedia.org/images/2/24/Verbesserung.png', 'Verbesserungsvorlage');
| |
− | add2toolbar('javascript:InuseArticle()', 'http://www.stupidedia.org/images/8/85/Inuse.png', 'Inuse erstellen');
| |
− | add2toolbar('javascript:WelcomeUser()', 'http://www.stupidedia.org/images/4/42/Welcome.png', 'Willkommen!');
| |
− | add2toolbar('javascript:WIP()', 'http://www.stupidedia.org/images/9/93/Welcome_IP.png', 'IP Einladen');
| |
− | add2toolbar('javascript:FindReplace()', 'http://www.stupidedia.org/images/b/b6/Ersetzen.png', 'Text ersetzen');
| |
− | add2toolbar('javascript:insertTags("<!--","-->","Unsichtbaren Text hier einfügen")','http://www.stupidedia.org/images/a/a5/ASE.gif','Unsichtbarer Text');
| |
− | add2toolbar('javascript:insertTags("{{P}} ~~~~","","")','http://img90.imageshack.us/img90/6205/plusxs5.png','Pro setzen');
| |
− | add2toolbar('javascript:insertTags("{{N}} ~~~~","","")','http://www.stupidedia.org/images/4/4d/Neut.png','Neutral setzen');
| |
− | add2toolbar('javascript:insertTags("{{C}} ~~~~","","")','http://img90.imageshack.us/img90/3256/minuspf3.png','Contra setzen');
| |
− | add2toolbar('javascript:insertTags("<br style=clear:both />","","")','http://www.stupidedia.org/images/e/e8/Absatz.png', 'Großabsatz');
| |
− | add2toolbar('javascript:insertTags("{{Interne Links}}","","")','http://www.stupidedia.org/images/0/0d/Interne_Links.png','Vorlage:Interne Links setzen');
| |
− | add2toolbar('javascript:insertTags("{{KK}}","","")','http://www.stupidedia.org/images/3/34/Keine_Kategorie.png','Vorlage:KK setzen');
| |
− | add2toolbar('javascript:ILundKK()', 'http://www.stupidedia.org/images/c/cd/IL%26KK.PNG','Vorlagen KK und IL setzen');
| |
− | add2toolbar('javascript:insertTags("{{Rechtschreibung}}","","")','http://www.stupidedia.org/images/a/ab/Rechtschreibung.png','Vorlage:Rechtschreibung setzen');
| |
− | add2toolbar('javascript:insertTags("{{Format}}","","")','http://www.stupidedia.org/images/6/6c/Format.png','Vorlage:Format');
| |
− | add2toolbar('javascript:insertTags("{{UL}}","","")','http://www.stupidedia.org/images/d/de/Unsinnige_Links.png','Unnötige Links');
| |
− | add2toolbar('javascript:Stub()', 'http://www.stupidedia.org/images/f/fe/Stub.png', 'Stub');
| |
− | add2toolbar('javascript:QO()', 'http://www.stupidedia.org/images/5/54/Qualit%C3%A4tsoffensive.png', 'QO');
| |
− | add2toolbar('javascript:Message()', 'http://www.stupidedia.org/images/a/a5/Message.png', 'Mitteilung schreiben');
| |
− | add2toolbar('javascript:Baustelle()', 'http://www.stupidedia.org/images/e/e0/Baustelle.gif', 'Baustelle');
| |
− | add2toolbar('javascript:Stop()', 'http://www.stupidedia.org/images/f/f9/Stop.png', 'Stop Warnung setzen');
| |
− | add2toolbar('javascript:Stupid()', 'http://www.stupidedia.org/images/4/49/Stupid.png', 'Stupid-Warnung');
| |
− | add2toolbar('javascript:UsePreview();','http://www.stupidedia.org/images/7/75/Preview.png','Vorschau-Button benutzen!');
| |
− | add2toolbar('javascript:SLA()', 'http://www.stupidedia.org/images/0/06/SL-Autor.png', 'SL-Künstler');
| |
− | add2toolbar('javascript:YellowCard()', 'http://www.stupidedia.org/images/5/5c/Gelbe_Karte.png', 'Gelbe Karte');
| |
− | add2toolbar('javascript:YellowRedCard()', 'http://www.stupidedia.org/images/0/0a/Gelb-Rote_Karte.png', 'Gelb-Rote Karte');
| |
− | add2toolbar('javascript:RedCard()', 'http://www.stupidedia.org/images/c/cc/Rote_Karte.png', 'Rote Karte');
| |
− | add2toolbar('javascript:Lizenz()', 'http://www.stupidedia.org/images/0/0e/Lizenz%21button.PNG', 'Lizenz! Sofort!');
| |
− | add2toolbar('javascript:NolicenseUser()', 'http://img292.imageshack.us/img292/2624/nolicenseusernb3.png', 'Nolicense-User-Diskussionsvorlage');
| |
− | add2toolbar('javascript:Mecker()', 'http://www.stupidedia.org/images/0/06/BadSig.png', 'Benutzer wegen Signatur anmeckern');
| |
− | add2toolbar('javascript:insertTags("{{Benutzer:Terminimaster/Laboratorium/Schleim|","}}","Schleim")','http://www.stupidedia.org/images/6/68/Schleim.gif','einschleimen');
| |
− | add2toolbar('javascript:Apokalypse()', 'http://www.stupidedia.org/images/8/8a/Apokalypse.png', 'Apokalypse machen');
| |
− | deleteButton(0);
| |
− | deleteButton(1);
| |
− | deleteButton(3);
| |
− | deleteButton(4);
| |
− | deleteButton(5);
| |
− | deleteButton(6);
| |
− | deleteButton(7);
| |
− | deleteButton(9);
| |
− | deleteButton(10);
| |
− | }
| |
| | | |
− | function deleteButton(Nr){
| |
− | document.getElementById('toolbar').getElementsByTagName("img")[Nr].style.display = "none";
| |
− | }
| |
− |
| |
− | function Mecker(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | var userSig = prompt("Name/Signatur","");
| |
− | var reason = prompt("Zu hoch, zu breit, zu hässlich?","breit");
| |
− | document.editform.wpTextbox1.value = "{{BadSig|" + userSig + "|" + reason + "|" + Benutzername + "}}\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "Inadäquate Signatur";
| |
− | }
| |
− |
| |
− | function Baustelle(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{Baustelle}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "Da passiert doch hoffentlich noch was...";
| |
− | }
| |
− |
| |
− | function NolicenseUser(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{Vorlage:Nolicenseuser|" + Benutzername + "}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Stupidedia:Bilderlizenzen|Bilder-Rechte sind nicht geklärt. Es droht die Löschung!]]";
| |
− | }
| |
− |
| |
− | function Stub(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{Stub}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "Ist das alles?";
| |
− | }
| |
− | if(document.title.indexOf('Bearbeiten') == 0)
| |
− | {
| |
− | if (window.addEventListener)
| |
− | {
| |
− | window.addEventListener("load", init, false);
| |
− | }
| |
− | else if (window.attachEvent)
| |
− | window.attachEvent("onload", init);
| |
− | }
| |
− |
| |
− | function ILundKK(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{Interne Links}}{{KK}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "Erstmal [[Vorlage:Interne Links|IL]] & [[Vorlage:KK|KK]] reingeknallt";
| |
− | }
| |
− |
| |
− | function QO(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{QO}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:QO|verbesserungswürdig...]]";
| |
− | }
| |
− |
| |
− | 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 = "Mitteilung";
| |
− | }
| |
− |
| |
− | function Jury(){
| |
− | var Inhalt = prompt("Inhalt? (max. 25)","");
| |
− | zahl1 = parseInt(Inhalt);
| |
− | var Humor = prompt("Humor? (max. 25)","");
| |
− | zahl2 = parseInt(Humor);
| |
− | var Kreativitaet = prompt("Kreativität? (max. 25)","");
| |
− | zahl3 = parseInt(Kreativitaet);
| |
− | var Gestaltung = prompt("Gestaltung? (max. 25)","");
| |
− | zahl4 = parseInt(Gestaltung);
| |
− | var Gesamt = zahl1 + zahl2 + zahl3 + zahl4;
| |
− | document.editform.wpTextbox1.value += "{{Jury|" + Benutzername + "|" + Inhalt + "|" + Humor + "|" + Kreativitaet + "|" + Gestaltung + "|" + Gesamt + "|black|#888888}}";
| |
− | document.editform.wpSummary.value = "Bewertung abgegeben";
| |
− | }
| |
− |
| |
− | 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?","zu wenige blaue, zu viele rote Links");
| |
− | 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?","Welche Bilder denn?");
| |
− | var Comment = prompt("Commentar:","Inhaltlich noch weiter ausbaubar");
| |
− | 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 WelcomeUser(){
| |
− | document.editform.wpTextbox1.value = "{{W|" + Benutzername + "}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "Einen wunderschönen herrlichen guten Morgen!";
| |
− | if(confirm("Kommentar hinzufügen?"))
| |
− | {
| |
− | var Comment = prompt("Kommentar:","");
| |
− | document.editform.wpTextbox1.value += "<p>P.P.S: " + Comment + "";
| |
− | }
| |
− | }
| |
− | function WIP(){
| |
− | document.editform.wpTextbox1.value = "{{Benutzer:Terminimaster/Laboratorium/WIP neu|" + Benutzername + "}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "Ergib dich der [[Stupidedia|dunklen Seite der Macht]]!";
| |
− | if(confirm("Kommentar hinzufügen?"))
| |
− | {
| |
− | var Comment = prompt("Kommentar:","");
| |
− | document.editform.wpTextbox1.value += "<p>P.P.S:" + Comment + "~~~~";
| |
− | }
| |
− | }
| |
− |
| |
− | function Stop(){
| |
− | document.editform.wpTextbox1.value = "{{Stop}}";
| |
− | document.editform.wpSummary.value = "[[Vorlage:Stop|Aufhören, sofort aufhören!]]";
| |
− | }
| |
− |
| |
− | function Stupid(){
| |
− | document.editform.wpTextbox1.value = '{{Stupid}}';
| |
− | document.editform.wpSummary.value = "[[Vorlage:Stupid|Spannend.]]";
| |
− | }
| |
− |
| |
− | function Lizenz(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{Lizenz!}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:Lizenz!|Lizenzangaben, aber flott!]]";
| |
− | }
| |
− |
| |
− | function SLA(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{SLA|" + Benutzername + "}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "SL-Autor";
| |
− | }
| |
− |
| |
− | 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 UsePreview(){
| |
− | var Article = prompt('Gemeinter Artikel');
| |
− | if(Article != ''){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = '{{Vorschau|' + Article + '}}\n' + Inhalt;
| |
− | }
| |
− | }
| |
− |
| |
− | function YellowCard(){
| |
− | var image = 'http://www.stupidedia.org/images/2/28/GelbeKarte.jpg';
| |
− | var Comment = prompt("Grund?","Gelbe Karte wegen Vandalismus");
| |
− | document.editform.wpTextbox1.value += '' + image + ' ' + Comment + ' ~~~~';
| |
− | document.editform.wpSummary.value = 'Gelbe Karte. 1. Verwarnung!';
| |
− | }
| |
− |
| |
− | function YellowRedCard(){
| |
− | var image = 'http://www.stupidedia.org/images/c/ce/GelbRoteKarte.PNG';
| |
− | var Comment = prompt("Grund?","Gelb-Rote Karte wegen Vandalismus. Beim nächsten Mal erfolgt Sperre");
| |
− | document.editform.wpTextbox1.value += '' + image + ' ' + Comment + ' ~~~~';
| |
− | document.editform.wpSummary.value = 'Gelb-Rote Karte. 2. Verwarnung!';
| |
− | }
| |
− |
| |
− | function RedCard(){
| |
− | var image = 'http://www.stupidedia.org/images/2/2a/RoteKarte.jpg';
| |
− | var Comment = prompt("Grund?","Rote Karte und Sperre wegen Vandalismus");
| |
− | document.editform.wpTextbox1.value += '' + image + ' ' + Comment + ' ~~~~';
| |
− | document.editform.wpSummary.value = 'Rote Karte und Aussperrung!';
| |
− | }
| |
− |
| |
− | function Apokalypse(){
| |
− | document.editform.wpTextbox1.value = "{{subst:Benutzer:Terminimaster/Laboratorium/Apokalypse}} [[Kategorie:Zur Löschung vorgeschlagener Artikel|!]]";
| |
− | document.editform.wpSummary.value = "APOKALYPSE!!!";
| |
− | }
| |
− |
| |
− | /* L Ö S C H G R Ü N D E */
| |
− | /* Der folgende Teil ist autonom und zuständig für das Erstellen von (hier 3) Buttons und einem Löschschwert
| |
− | bei der Löschbestätigung, mit denen sich Standardlöschgründe einfügen lassen.
| |
− | Note: Dieses Feature ist nur für Diktatoren brauchbar.
| |
− | */
| |
− |
| |
− | function add_tabs()
| |
− | {
| |
− | var c1 = document.getElementById('column-one');
| |
− | var tabs = c1.getElementsByTagName('div')[0].getElementsByTagName('ul')[0];
| |
− |
| |
− | //Mein Standard-Lösch-Grund:
| |
− | if(document.getElementsByName("wpReason")[0] && document.title.indexOf("Artikel verschieben") == -1){
| |
− | add2delete('javascript:Useless()','http://img45.imageshack.us/img45/5695/lunntigkz6.png','Unnötig');
| |
− | add2delete('javascript:InsiderArticle()','http://img128.imageshack.us/img128/2308/linsiderdb1.png','Insider');
| |
− | add2delete('javascript:DumpArticle()','http://img128.imageshack.us/img128/8544/lschrotten2.png','Schrott');
| |
− | add2delete('javascript:TimeOut()','http://img93.imageshack.us/img93/7290/timeub5.png','Zeit vorbei');
| |
− | }
| |
− | }
| |
− |
| |
− | if (window.addEventListener)
| |
− | window.addEventListener("load", add_tabs, false);
| |
− | else if (window.attachEvent)
| |
− | window.attachEvent("onload", add_tabs);
| |
− |
| |
− | function add2delete(url, bild, titel)
| |
− | {
| |
− | var container = document.getElementById('contentSub');
| |
− | 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);
| |
− | }
| |
− |
| |
− | function Useless(){
| |
− | document.getElementsByName("wpReason")[0].value = "[[Löschwahn|Das Löschen ist Dikators Lust... ♫♪♫]]";
| |
− | }
| |
− | function InsiderArticle(){
| |
− | document.getElementsByName("wpReason")[0].value = "[[Insider]] lösch' ich am liebsten!";
| |
− | }
| |
− | function DumpArticle(){
| |
− | document.getElementsByName("wpReason")[0].value = "Der Artikel ist dem [[Benutzer:Terminimaster/Löschvampir|Löschvampir]] zum Opfer gefallen.";
| |
− | }
| |
− | function TimeOut(){
| |
− | document.getElementsByName("wpReason")[0].value = "Ein weiteres Opfer des gnadenlosen [[Zeitgeist]]es.";
| |
− | }
| |
− |
| |
− | /* Recent Changes */
| |
− |
| |
− | if (window.addEventListener)
| |
− | window.addEventListener("load", showChanges, false);
| |
− | else if (window.attachEvent)
| |
− | window.attachEvent("onload", showChanges);
| |
− |
| |
− | function showChanges(){
| |
− |
| |
− | if(!document.getElementById('pagehistory')){
| |
− | if(document.getElementById("showRecent")){
| |
− | document.getElementById('content').removeChild(document.getElementById("showRecent"));
| |
− | }
| |
− |
| |
− | var inhalt = '<div id="RecentShow" style="background: none; width: 100%; position: fixed; bottom: 17px; padding: 0px; vertical-align: top;"><iframe name="Recent" id="Recent" src="http://www.stupidedia.org/stupi/Benutzer:Terminimaster/Recentchanges?action=render" scrolling="side" frameborder="0" width="817px" height="100" style="background: #cccccc; font-family: Arial; font-size: 10pt; bottom: 0px" onload="javascript:CorrectEnviroment(); return true">Dein Browser mag Frames nicht. :(</iframe></div>';
| |
− |
| |
− | var Enviroment = document.getElementById('content')
| |
− | Enviroment.innerHTML += inhalt;
| |
− | }
| |
− | }
| |
− |
| |
− | function CorrectEnviroment(){
| |
− | var Child = window.frames["Recent"].document.getElementsByTagName('h4')[0];
| |
− | window.frames["Recent"].document.getElementById('StyleGenerator').removeChild(Child);
| |
− | }
| |
− |
| |
− | /* LINKLEISTE */
| |
− |
| |
− | if (window.addEventListener)
| |
− | window.addEventListener("load", motivation, false);
| |
− | else if (window.attachEvent)
| |
− | window.attachEvent("onload", motivation);
| |
− |
| |
− | function motivation(){
| |
− | var LinkLoc = ' <a href="http://www.stupidedia.org/stupi/';
| |
− | var links = LinkLoc + 'Kategorie Diskussion:Stupidedia:Vorbildhafter Artikel"><font color="white">VA</font></a> •'
| |
− | + LinkLoc + 'Spezial:Whatlinkshere/Vorlage:KK"><font color="white">KK</font></a> &'
| |
− | + LinkLoc + 'Spezial:Whatlinkshere/Vorlage:Interne Links"><font color="white">IL</font></a> •'
| |
− | + LinkLoc + 'Benutzer:Terminimaster/Laboratorium"><font color="white">Labor</font></a> •'
| |
− | + LinkLoc + 'Benutzer:Terminimaster/monobook.js"><font color="white">JS</font></a> •'
| |
− | + LinkLoc + 'Benutzer:Terminimaster/monobook.css"><font color="white">CSS</font></a> •'
| |
− | + LinkLoc + 'Spezial:Newpages"><font color="white">Neu</font></a> •'
| |
− | + LinkLoc + 'Benutzer:Terminimaster/Laboratorium/Ablage"><font color="white">Ablage</font></a> •'
| |
− | + LinkLoc + 'Spezial:Log"><font color="white">Logbücher</font></a> •'
| |
− | + LinkLoc + 'Stupidedia:Routine"><font color="white">Routine</font></a> •'
| |
− | + LinkLoc + 'Hilfe:Javascripts/Rein Damit"><font color="white">Rein damit</font></a> •'
| |
− | + LinkLoc + 'Spezial:Recentchangeslinked/Benutzer:Bernardissimo/PotVand"><font color="white">Vandalen?</font></a> •'
| |
− | + LinkLoc + 'Spezial:Blockip"><font color="white">Sperren</font></a> •'
| |
− | + LinkLoc + 'Spezial:Ipblocklist"><font color="white">Gesperrt</font></a> ';
| |
− | var div = document.createElement('div');
| |
− | div.style.position = 'fixed';
| |
− | div.style.bottom = '0px';
| |
− | div.style.fontSize = '12pt';
| |
− | div.style.backgroundColor = 'black';
| |
− | div.style.fontWeight = 'none';
| |
− | div.style.color = 'white';
| |
− | div.innerHTML = links;
| |
− | var content = document.getElementById('content');
| |
− | content.appendChild(div);
| |
− | }
| |
− | //</nowiki></pre>
| |