User:Bluefire2/wikia.js

/* Recent Changes scripts */

importScript('User:Suppa_chuppa/hybrid.js');

/* Undo+ */

importScript('User:Suppa chuppa/undoplus.js');

/* A modified version of Quarenon's AutoWelcome script */

// if (wgCanonicalNamespace == 'User_talk' && wgAction == 'edit' && wgArticleId === 0 && wgTitle.split('.').length != 4 && wgTitle.indexOf('/') == -1) { $(document).ready(function {		$('#wpTextbox1').val((typeof(window.autoWelcomeText) == 'undefined') ? '' : window.autoWelcomeText);		$('#wpSummary,#wpSummaryEnhanced').val((typeof(window.autoWelcomeSummary) == 'undefined') ? 'Welcome!' : window.autoWelcomeSummary);	}); } //

/*** BEGIN TEMPLATES SCRIPT ***/ //

/* For help with this script, visit http://runescape.wikia.com/wiki/User:Quarenon/Scripts/Templates */

var toolbarTemplates = []; var toolbarFillSummary = 1; var toolbarFillHeader = 0;

// Add custom templates here

/* DO NOT EDIT THIS LINE! */ importScript('User:Quarenon/templates.js');

// /*** END TEMPLATES SCRIPT ***/

/* Cake button */

$(document).ready(function {	if(wgPageName == "Special:Chat") {		var b = document.createElement("button");		b.className += "wikia-button";		$(b).css({"position" : "absolute", "right" : "55px", "bottom" : "2px"});		b.innerHTML = "Cake";		$("#Write").append(b);		b.setAttribute("onclick", "cake");	}	$('textarea[name=message]').on("focus", function { this.value = this.value; }); }); function cake { $('textarea[name=message]').val(function {		return this.value + "(chocolate cake)"	}); $('textarea[name=message]').focus; }