User:Mateusz Konieczny/common.js
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.
The accompanying .css page for this skin can be added at User:Mateusz Konieczny/common.css. |
//ensure mediawiki.util loaded
mw.loader.using( 'mediawiki.util', function () {
//call on page load
jQuery( function( $ ) {
//Use basic upload form
//remove old link
var elem = document.getElementById("n-uploadbtn");
elem.parentNode.removeChild(elem);
//add new link
mw.util.addPortletLink('p-participate','/w/index.php?title=Special:Upload&uselang=experienced','Upload file','n-uploadbtn', 'Basic upload form', null, '#n-recentchanges' );
//close functions
}); //jQuery( function( $ ) {
}); //mw.loader.using( 'mediawiki.util', function () {
//<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>