Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.

  • Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
  • Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
  • Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
/* <nowiki> */

importScript('Benutzer:Revolus/monobook.js/empty.js');

if(wgServer === "http://commons.wikimedia.org") {
	var stfu = function() {
		var a = onloadFuncts;
		onloadFuncts = [];
		var func;
		while(func = a.shift()) {
			if(func === stfu) continue;
			if((typeof(gallery_dshuf_prepare) !== "undefined") && (func === gallery_dshuf_prepare)) continue;
			if((typeof(dshuf) !== "undefined") && (func === dshuf)) continue;
			if((typeof(localizeSignature) !== "undefined") && (func === localizeSignature)) continue;
			if((typeof(iProject) !== "undefined") && (func === iProject)) continue;
			if((typeof(resize_galleries) !== "undefined") && (func === resize_galleries)) continue;
			if((typeof(catfood_init) !== "undefined") && (func === catfood_init)) continue;
			func();
		}
	};
	onloadFuncts.unshift(stfu);
}

function myCharinsert() {
	if(typeof(charinsert) === "object") {
		charinsert["Test"] = [["Test"]];
	}
}
if(typeof(charinsert) === "object") {
	myCharinsert();
} else {
	addOnloadHook(myCharinsert);
}

var minimalVersion = function(n) { return n; }; // PDD-Skripte-Hack (für ohne Kopieren)
var importPage = function() { return false; };
var addEvent = function() { return false; };

function Nachladen(Adresse) {
	document.writeln("<script type='text/javascript' src='"+Adresse+"'><\/script>");
};
function NachladenWP(Adresse, Server) {
	if(Adresse=="Revo") {
		Adresse = "Benutzer:Revolus/monobook.js/"+Server;
		Server = "de.wiki.x.io";
	} else {
		if(!Server) Server = "de.wiki.x.io";
		else switch(Server) {
			case("de"): Server = "de.wiki.x.io"; break;
			case("en"): Server = "en.wiki.x.io"; break;
			case("commons"): Server = "commons.wikimedia.org"; break;
		};
	};
	Nachladen("http://"+Server+"/w/index.php?title="+Adresse+"&action=raw&ctype=text/javascript&dontcountme=s");
};

sigText = " --~~~~";
window.addEditTopLinkNumHeaders = 1;
linkFA_enabled = false;
bklCheckOnlyCheckMainNS = true;
wikEdSkipBrowserTest = true;
gallerySize = 160;
galleryBorder = 5;

NachladenWP("Wikipedia:WikiProject_User_scripts/Scripts/qSig", "en");
// NachladenWP("User:Alex Smotrov/logpage.js", "en");
NachladenWP("User:Alex Smotrov/wlunwatch.js", "en");
NachladenWP("User:Cacycle/wikEdDiff.js", "en");
NachladenWP("MediaWiki:Gadget-Einleitung-bearbeiten.js");
NachladenWP("MediaWiki:Gadget-LongEditSummaries.js", "en");
NachladenWP("User:Gary_King/comments_in_local_time.js", "en");

if((wgServer === "http://de.wiki.x.io") && (wgCanonicalNamespace === "Category")) {
	NachladenWP("Revo", "XML-Beschreibung-Da-Test.js");
	NachladenWP("Benutzer:Revolus/Datei-syntax-updater.js");
}

NachladenWP("Revo", "sidebartranslate.js");
NachladenWP("Revo", "safe-rollback.js");
NachladenWP("Benutzer:Revolus/beitraege_filtern.js");
NachladenWP("Benutzer:Revolus/gallerySize.js");
if((wgNamespaceNumber !== 0) || (wgAction !== "view")) NachladenWP("Revo", "markadmins.js");

// NachladenWP("Revo", "printsection.js");
// NachladenWP("Revo", "twinkle.js");
// NachladenWP("Benutzer:Revolus/tbwl0.3.js");
// NachladenWP("Benutzer:RevoTest/tbwlButton.js");
// NachladenWP("Benutzer:RevoTest/tbwl.js");
// NachladenWP("Benutzer:RevoTest/tbwlButton.js");

/*
if(wgAction==="view" && wgCanonicalNamespace !== "Special") {
	addOnloadHook(function() {
		mw.loader.load("http://hyphenator.googlecode.com/svn/tags/Version%202.5.0/Hyphenator.js?bm=true");
	});
}
*/





// BEARBEITEN

if((wgServer === "http://de.wiki.x.io") && (wgAction === "edit") && ((wgNamespaceNumber === 0) || (wgNamespaceNumber === 10)) && ("x".replace(/x/, function() { return "y"; }) === "y"))
$(function() {
	var eb = document.getElementById("wpTextbox1");
	if(!eb || eb.getAttribute("readonly")) return;
	eb.value = eb.value
	     .replace(/<\/?br *\/?>/gi, "<br />")
	     .replace(/^(=+) *([^ =].*=)$/gm, "$1 $2")
	     .replace(/^(=.*[^ =]) *(=+)$/gm, "$1 $2")
	     .replace(/(\[\[[^\|\] ]+\|[^\] ]+)\]\]([a-z]+)/gi, "$1$2]]")
	     .replace(/\[\[([^\|\] ]+)\|\1([^\] ]*)\]\]/g, "[[$1]]$2")
	     .replace(/\[\[([^\|\]]+)\|\1\]\]/g, "[[$1]]")
	     .replace(/\{\{!\}\}\{\{!\}\}/gi, "{{!!}}");
});

$(function () {
	mw.util.addPortletLink(
		"p-personal",
		"/wiki/Benutzer:Revolus/Favoriten",
		"Favoriten",
		"pt-Favoriten",
		"Favoriten",
		"",
		document.getElementById("pt-userpage")
	);
});


// STYLE

var oldEditsectionLinks = true;
if(wgAction === "view") {
	addOnloadHook(function () {
		var spans = document.getElementsByTagName("span");
		for(var i = 0; i < spans.length; i++) {
			if(spans[i].className == "editsection") {
				spans[i].parentNode.appendChild(document.createTextNode(" "));
				spans[i].parentNode.appendChild(spans[i]);
			}
		}
	});
}

if(wgNamespaceNumber === -1) {
	if(wgPageName !== wgCanonicalNamespace+':'+wgCanonicalSpecialPageName) {
		addOnloadHook(function () {
			mw.util.addPortletLink("p-cactions", wgScript+"?title=en:"+wgCanonicalNamespace+':'+wgCanonicalSpecialPageName, "Englisch", "pt-page-en", "", "");
		});
	} else {
		addOnloadHook(function () {
			mw.util.addPortletLink("p-cactions", wgScript+"?title=de:"+wgCanonicalNamespace+':'+wgCanonicalSpecialPageName, "Deutsch", "pt-page-de", "", "");
		});
	}
}

$(function () {
	if(typeof(wgScript) !== "undefined") {
		var ue = wgScript+ "?title=" +encodeURIComponent(mw.config.get('wgPageName'))+ "&action=";
		mw.util.addPortletLink("p-cactions", ue+"purge", "Purge", "pt-purge", "", "");
		mw.util.addPortletLink("p-cactions", ue+"edit&section=0", "Section 0", "pt-edit-section-0", "", "");
	}
	
	addOnloadHook(function() {
		var one = document.getElementById("column-one");
		if(!one) return;
		
		function RausRein(name, ziel) {
			if(typeof(name) === "string") {
				var elem = document.getElementById(name);
			} else {
				var elem = name;
			}
			if(elem) {
				elem.parentNode.removeChild(elem);
				if(ziel) ziel.appendChild(elem);
			}
		}
		
		function neuerOneAbschnitt(AId, ANeuId, AUeberschrift) {
			var daten = document.getElementById(AId);
			if(!daten) return;
			var datenDiv = document.createElement("div");
			var Ueberschrift = document.createElement("h5");
			var datenBodyWrapper = document.createElement("div");

			datenDiv.setAttribute("id", ANeuId);
			datenDiv.setAttribute("class", "portlet");
			datenBodyWrapper.setAttribute("class", "pBody");
			Ueberschrift.appendChild(document.createTextNode(AUeberschrift));
		
			datenDiv.appendChild(Ueberschrift);
			datenBodyWrapper.appendChild(daten.getElementsByTagName("ul")[0].cloneNode(true));
			datenDiv.appendChild(datenBodyWrapper);
			one.appendChild(datenDiv);
		}
		
		var content = document.getElementById("column-content");
		
		neuerOneAbschnitt("p-cactions", "p-cactionsKopie", "Diese Seite");
		//neuerOneAbschnitt("toc", "tocKopie", "Inhaltsverzeichnis");
		neuerOneAbschnitt("p-personal", "p-personalKopie", wgUserName);
		
		//RausRein("p-cactions", content);
		RausRein("siteNotice", content);
	});
});

$(function() {
	switch(wgServer) {
		case("http://de.wiki.x.io"):
			var icoURI = "http://up.wiki.x.io/wikipedia/commons/4/42/Fav1.gif"; break;
		case("http://en.wiki.x.io"):
			var icoURI = "http://up.wiki.x.io/wikipedia/commons/f/fb/Favicon_wikipedia_en.gif"; break;
		default: return;
	}
	
	if(!head) var head = document.getElementsByTagName("head")[0];
	var links = head.getElementsByTagName("link");
	for (var i = 0; i<links.length; i++) {
		var l = links[i];
		if ((l.type === "image/x-icon") && (l.rel == "shortcut icon")) {
			head.removeChild(link);
		}
	}
	var fav = document.createElement("link");
	fav.setAttribute("type", "image/x-icon");
	fav.setAttribute("rel", "shortcut icon");
	fav.setAttribute("href", icoURI);
	head.appendChild(fav);
});

document.writeln('<style type="text/css">\n\
#p-logo, #p-cactions, #p-personal { display:none; } \n\
#column-one { position: fixed; padding-top: 0px; height: 100%; overflow: auto; } /* Linke Spalte */ \n\
/* .ns-0 #content { background: #fdfdef; color: #03030c; } */ \n\
#column-one > div { max-height: 4em; overflow: auto; border: 1px solid black; background-color: #aaa; } \n\
#column-one h5 { display: none; text-align: center; font-weight: bold; } \n\
/* #column-one div:hover h5 { display: inline; } */ \n\
#column-one h5:after { content: ":"; font-weight: bold; } \n\
#column-one > div:hover { max-height: 15em; } \n\
#column-one li.new a { text-decoration: line-through; } \n\
#column-one li { margin-left: -1.8em; }\n\
</style>');
	
/* </nowiki> */