User:Phe/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.
stockphoto_prevent=true;

/* Popup de Lupin */
simplePopups=true;
popupDelay=0.7;
popupStructure='original';
popupOnEditSelection=false;
popupAdminLinks=true;

/* plain upload form */
$(function () {
   var upLI = document.getElementById('n-uploadbtn');
   var upA = upLI.getElementsByTagName('A')[0];
       upA.href = wgScript + '?title=Special:Upload&uploadformstyle=basic';
 
   if (document.getElementById('wpUploadDescription'))
      document.getElementById('wpUploadDescription').style.height = '170px';
});

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