User:FalconX Zero/global.js

importScriptPage('PurgeButton/code.es.js', 'dev'); importScriptPage('SkinSwitchButton/code.js', 'dev');

/* == Links "edit" == Para desactivar, pon window.oldEditsectionLinks=1; en tu monobook.js function moveEditSection{ if (window.oldEditsectionLinks) return; for (var i=1;i<7;i++){ for (var j=0,hs=document.getElementsByTagName('h'+i.toString);j<hs.length;j++){ var ss=$UT.getElementsByClassName('editsection', 'span', hs[j]); if (ss.length !== 0){ ss[0].className+=' editsection-nf'; ss[0].removeAttribute('style'); // BigButton fix hs[j].appendChild(ss[0]); }		}	} } $(moveEditSection); function setupMultipleUpload{ var f = $G('upload'); if (!f) return; // Convertir descripcion en textarea var table = f.getElementsByTagName('table')[0], contador = 0; for (var i = 0, rs = table.rows; i < rs.length; i++){ if (rs[i].cells.length < 3) continue; var c = rs[i].cells[2]; if (c.getElementsByTagName('input').length == 0) continue; var oldValue = c.getElementsByTagName('input')[0].value, newName = 'wpUploadDescription_'+contador.toString; while (c.firstChild) c.removeChild(c.firstChild); c.appendChild($UT.create('textarea', {tabindex:'3', 'name':newName, 'id':newName}, oldValue)); contador++; }	// Tamaño normal en selector de licencia if ($G('wpLicense')) $G('wpLicense').removeAttribute('style'); } if (wgNamespaceNumber == -1 && window.wgCanonicalSpecialPageName === 'MultipleUpload'){ $(setupMultipleUpload); }