User:Der Buckesfelder/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.
var ns = mw.config.get('wgNamespaceNumber'), ti = mw.config.get('wgTitle');
// SORT CONVERT-TO-SVG TAGS:
if( ns === 14 || (ns === 6 && mw.toolbar && !/SVG/i.test(ti.slice(-3))) ) 
importScript('User:Perhelion/fixconverttosvg.js');


importScript('User:Rd232/myuploads.js');
//<nowiki>

//catALot///////////////////////////////////////
////////// Cat-A-Lot user preferences //////////
window.catALotPrefs = {"watchlist":"watch","minor":true,"editpages":false,"docleanup":false,"subcatcount":50};
////////////////////////////////////catALotEnd//
//</nowiki>


 /*jshint scripturl:true*/
mw.util.addPortletLink('p-tb', 'javascript:importScript("MediaWiki:VisualFileChange.js");', 'Perform batch task', 't-AjaxQuickDeleteOnDemand');
/*jshint scripturl:false*/
//<nowiki>

//vFCvFCCfg/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFCSettings = {"userNote":"Yours sincerely,","firstTest":0,"testEdits":0,"defaultAction":"del","watchlistUserTalk":"preferences","watchlistFiles":"preferences","watchlistReplace":"nochange","watchlistOTRS":"nochange","loadBatchSize":100,"maxSimultaneousReq":5,"summaryChacheLen":5,"loadThumbs":true,"loadWikitext":true};
//////////////////////////////////vFCvFCCfgEnd//
//</nowiki>
//<nowiki>

//vFCProfil/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFC_Profiles = {"Logos to Unidentified Logos":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"Moving from [[Category:Logos]] to [[Category:Unidentified logos]], since Logos should be empty.","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Logos]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":false,"mdMatchText1":"/Category:Logos/g","mdReplaceText1":"Category:Unidentified logos","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Logos","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|4c4f474f323736583134362e504e47|19280018"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:Logos","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|4c4f474f20534d4152544c414220524742203138303050582e504e47|18970963","file|4c4f474f323736583134362e504e47|19280018"],"setVals":["cmcontinue"]},"time":"2017-02-22T17:18:22.055Z"},"PD-Logo":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"Changing to correct license ([[Template:PD-Trademark-Text-Logo]])","mdReplacePermission":false,"mdDeleteHeading":"Files uploaded by [[User:Delen g|Delen g]] ([[User talk:Delen g|talk]] · [[Special:Contributions/Delen g|contribs]])","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/\\{\\{self\\|cc.*\\}\\}/ig","mdReplaceText1":"{{PD-Trademark-Text-Logo}}","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Delen g","ledir":"older","lecontinue":"20160223011857|152365480"},"startInput":{"mode":"User","modeCat":false,"modeUser":true,"modePage":false,"modeSearch":false,"target":"Delen g","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["20160223011857|152365480"],"setVals":["lecontinue"]},"time":"2017-02-24T14:54:11.261Z"},"Uncategorized logo":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"Moving to [[Category:Unidentified logos]].","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Logos]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":false,"mdMatchText1":"/{{Uncategorized|year=.*|month=.*|day=.*}}/g","mdReplaceText1":"Category:Unidentified logos","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:All media needing categories as of 2017","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|27275741542046524945534520474c45494552532042414b4b454e27272d3531363735392e4f47560a27275741542046524945534520474c45494552532042414b4b454e27272d3531363735392e4f4756|45502310"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:All media needing categories as of 2017","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|224f4b4e4f205041504945534b4945222057204b52414b4f574945202d2050414e4f52414d494f2e4a50470a224f4b4e4f205041504945534b4945222057204b52414b4f574945202d2050414e4f52414d494f2e4a5047|56051135","file|27275741542046524945534520474c45494552532042414b4b454e27272d3531363735392e4f47560a27275741542046524945534520474c45494552532042414b4b454e27272d3531363735392e4f4756|45502310"],"setVals":["cmcontinue"]},"time":"2017-02-27T21:56:08.100Z"}};
//////////////////////////////////vFCProfilEnd//
//</nowiki>


$(document).bind('scriptLoaded', function(evt, st, o) {
	if (st) {
		if ('AxUserMsg' === st && o) {
			o.umTemplate.push(['User:Der Buckesfelder/Wrong license note Logo', "Wrong license for Logo", "Please use the correct license for logos", (1|4)]);
		}
	}
});