Kamel:J*/vector.js

/* für's Bürokratenspiel */ function bksp {	if (wgPageName.indexOf("Projekt:Bürokratenspiel") != -1 ) {		var t = wgTitle.split("/"); var e = (wgAction = "edit") ? "$ " : "";		document.title = t[t.length-1]; } } addOnloadHook(bksp);

/* Zusammenfassungs-Warnung */

addOnloadHook( function {	jQuery("#wpSummary, #wpTextbox1").bind("keypress", function { jQuery("#wpSummary").css("background-color","#ffffff"); try { clearInterval(summaryWarnInterval); summaryWarnInterval = null; }		catch (e) {} summaryWarnState = -1; });

jQuery("#editform").bind("submit", function (e) {

if ( e.originalEvent.explicitOriginalTarget != jQuery("#wpSave")[0] ) return true;

if (! jQuery("#wpSummary").val.replace(/^\s+/,"").replace(/\s+$/,"").replace(/\/\*.*?\*\//,"") && summaryWarnState == -1) {                       jQuery("#wpSummary").focus; summaryWarnInterval = window.setInterval(summaryWarn,70); return false; }

return true; }); });

summaryWarnState = -1; summaryWarnInterval = null;

function summaryWarn {	summaryWarnState ++; if (summaryWarnState % 2 == 0) jQuery("#wpSummary").css("background-color","#ffff99"); else jQuery("#wpSummary").css("background-color","#ffffff");

if (summaryWarnState > 11) clearInterval(summaryWarnInterval); }

/* Bt-extras-bibliothek */ function bt_extras_load {

console.log("Hallo");

/* --- prepare --- */

/* dbcheat */

if (window.bt_extra_dbcheat == null) window.bt_extra_dbcheat = false;

/* --- add ui --- */

jQuery("#buschtrommel-eingabe .options").append(" ") jQuery("#buschtrommel-eingabe .options").append(" Drumbot austricksen: ein ") jQuery("#buschtrommel-eingabe .options").append("  ") jQuery("#buschtrommel-eingabe .options").append(" Jaja-ich-habs-gesehen ")

/* --- add functionality --- */

/* jaja */

jQuery("#bt-extra-jaja").click( function {		document.title = "–⚑–";		})

/* dbcheat */

var toggleDBCheat = function { window.bt_extra_dbcheat = ! window.bt_extra_dbcheat; jQuery("#bt-extra-show-dbcheat").text(window.bt_extra_dbcheat ?"ein":"aus"); }

// init window.bt_extra_dbcheat = (! window.bt_extra_dbcheat); toggleDBCheat;

jQuery("#bt-extra-dbcheat").click(toggleDBCheat);

jQuery("#buschtrommel-form").submit( function {		if (!window.bt_extra_cheatDrumbot)			return true;

var bti = jQuery("#buschtrommel-input")[0]; bti.value = bti.value.replace("o","ο"); return true; });

}

//jQuery("body.mw-special-Buschtrommel").load(bt_extras_load); window.setTimeout(bt_extras_load,"3000");