MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images4.wikia.nocookie.net/mugen/images/a/a2/Button.CharInfo.png", "speedTip": "Quick character info", "tagOpen": "", "sampleText": "|Origin=Original|Downloadlink=None|Creator=Unknown"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/mugen/images/b/b8/Stats_button.PNG", "speedTip": "Character stats", "tagOpen": "=== Stats ===\n*Life: 1000\n*Power: 3000\n*Attack: 100\n*Defence: 100", "tagClose": "", "sampleText": ""}; } var wgEnableImageLightboxExt = false;

/** * Function to easily embed SWF files * Place the following where you want to embed some file: * http://path/to/your/file * Flash files from untrusted sources can be dangerous. Use caution. (function{	var flashobjects, i, url, embed;		// Enumerate over the files that need to be embedded	flashobjects = document.getElementsByClassName( "flash-wrapper" ) || [];	for ( i = 0; i < flashobjects.length; i++ ) {			url = flashobjects[i].textContent;		if ( url.indexOf( "http" ) !== 0 ) {			// If it's not a valid http(s) URL, continue, and log the error			console.log( "Lightning: Skipped the" + ( i + 1 ) + "th Flash video - " + url + " is not a well-formed HTTP(S) URL" );			continue;		} else {			// Otherwise, embed			flashobjects[i].textContent = "";			embed = document.createElement( "embed" );			embed.src = url;			embed.type = "application/x-shockwave-flash";			flashobjects[i].appendChild( embed );		}	} });

window.SignatureCheckJS = { // Parts of the confirm prompt preamble: "Where do you think you're going?\n\n", epilogue: "\nSo yeah, don't be lazy.", noForumheader: "This will appear in the middle of the preamble and epilogue if the forumheader template is missing on a forum page\n", noSignature: "You post appears to have been left unsigned. Use ( 23:14, November 22, 2013 (UTC)) to sign your posts.\n", // Other stuff forumheader: '', // The name of the Forumheader template, can be set to an empty string or false to disable checkSignature: true // Enable the signature check function };

importArticles({   type: "script",    articles: [        "w:c:dev:RevealAnonIP/code.js",        "w:c:dev:SignatureCheck/code.js"    ] });