User:PokestarFan/common.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
//Code for installing VisualFileChange
/*jshint scripturl:true*/
mw.util.addPortletLink('p-tb', 'javascript:importScript("MediaWiki:VisualFileChange.js");', 'Perform batch task', 't-AjaxQuickDeleteOnDemand');
/*jshint scripturl:false*/

//Code for installing Commons Commander
importScript( 'MediaWiki:Commander.js ');
//<nowiki>

//vFCProfil/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFC_Profiles = {"PokestarFan's Porfile":{"editInputs":{"mdDeleteReason":"Worried about copyvio","mdEditSummary":"Worried about copyvio","mdReplacePermission":false,"mdDeleteHeading":"Files uploaded by [[User:PokestarFan|PokestarFan]] ([[User talk:PokestarFan|talk]] · [[Special:Contributions/PokestarFan|contribs]])","mdTalkNote":"Yours sincerely,","mdRRegEx1":false,"mdRVar1":true,"mdMatchText1":"","mdReplaceText1":"","selPreserve":"secure","alsoPreserve":""},"action":"del","objectMembers":{"queryParams":{"target":"PokestarFan","ledir":"older","lecontinue":"20160210224851|151322331"},"startInput":{"mode":"User","modeCat":false,"modeUser":true,"modePage":false,"target":"User:PokestarFan","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["20160215141147|151677944","20160210224851|151322331"],"setVals":["lecontinue"]},"time":"2016-02-17T23:18:59.900Z"}};
//////////////////////////////////vFCProfilEnd//
//</nowiki>

//code for BigChinkedUpload
 importScript('User:Rillke/bigChunkedUpload.js');

//code for silently adding user category into UploadWizard
if ("UploadWizard" === mw.config.get('wgCanonicalSpecialPageName')) {
	mw.loader.using('ext.uploadWizard', function () {
		try {
			var autoAdd = mw.config.get('UploadWizardConfig').autoAdd;
 
			// Add a custom category to all my upload wizard uploads
			autoAdd.categories.push("Files by PokestarFan");
			// Add a custom license tag to all my files uploaded using the sorcerer
			autoAdd.wikitext += "{{My custom information or re-using tag}}";
 
		} catch (ex) {
			mw.log("Injecting user-category into UploadWizard failed.", ex);
		}
	});
}