User:Alfvanbeem/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.
//<nowiki>

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

//add buttons to the classic upload form
if (wgPageName  == 'Special:Upload'){
	$('.mw-htmlform-field-HTMLTextField').after('<tr><td></td><td>'+
	'<button type="button" onclick="$(\'#wpUploadDescription\').val(\'Higher resolution acquired using the [[Dememorixer]]\')">Dememorixer</button>'+
	'<button type="button" onclick="$(\'#wpUploadDescription\').val(\'Higher resolution\')">Higher resolution</button>'+
	'<button type="button" onclick="$(\'#wpUploadDescription\').val(\'=={{int:filedesc}}==\\n{{Artwork\\n|wikidata=\\n|title={{en|1= }}\\n|date=\\n|medium = \\n|dimensions = \\n|institution=\\n|source=\\n|author=\\n|notes=\\n|permission=\\n|other versions=\\n}}\')">Artwork</button>'+
	'</td></tr>');
}
//<nowiki>

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