User:Doc Taxon/wikipe-tan.js

// Dieses Skript fügt eine kleine Wikipe-tan unten links auf dem Bildschirm hinzu. // Es ist ein Fork von 'https://de.wikipedia.org/wiki/Benutzer:MGChecker/wikipe-tan.js'.

var picTan = "https://upload.wikimedia.org/wikipedia/commons/2/2a/Wikipe-tan_full_length_(reversed).svg"; var picButton = "https://upload.wikimedia.org/wikipedia/commons/9/98/Blank_button.svg";

if (mw.config.get("skin") == "monobook") { leftTan = "2px"; leftButton1 = "29px"; bottomButton1 = "112px"; leftButton2 = "105px"; bottomButton2 = "111px"; leftButton3 = "77px"; bottomButton3 = "35px"; } else { leftTan = "10px"; leftButton1 = "37px"; bottomButton1 = "120px"; leftButton2 = "113px"; bottomButton2 = "119px"; leftButton3 = "85px"; bottomButton3 = "43px"; }

$wikipeTan = jQuery(''); $wikipeTan.html(''); $("body").append($wikipeTan);

$button1 = jQuery(''); $button1.html(''); $("body").append($button1);

$button2 = jQuery(''); $button2.html(''); $("body").append($button2);

$button3 = jQuery(''); $button3.html(''); $("body").append($button3);

function wikipeTanHide { document.getElementById("buttonOuter3").style.display = "none"; document.getElementById("buttonOuter2").style.display = "none"; document.getElementById("buttonOuter1").style.display = "none"; document.getElementById("wikipeTanOuter").style.display = "none"; }

$button1.click(function {	window.location='https://de.wikipedia.org/wiki/Spezial:Beitr%C3%A4ge/TaxonBot'; });

$button2.click(function {	window.location='https://de.wikipedia.org/wiki/Spezial:Beitr%C3%A4ge/TaxonKatBot'; });

$button3.click(function {	window.location='https://de.wikipedia.org/wiki/Spezial:Beitr%C3%A4ge/TaxonBota'; });