Diferencia entre revisiones de «MediaWiki:Vector.js»

De Diccionario Interactivo Ceán Bermúdez
Ir a la navegación Ir a la búsqueda
Línea 4: Línea 4:
 
$("#mw-content-text p").each(function() {
 
$("#mw-content-text p").each(function() {
 
     var $this = $(this);
 
     var $this = $(this);
     if( $.trim($this.html()) == "") $this.remove();
+
     if( $.trim($this.html()) == "<br>") $this.remove();
 
});
 
});

Revisión del 18:43 1 mar 2021

/* Cualquier código JavaScript escrito aquí se cargará para todos los usuarios que usen la apariencia Vector */
$(".infobox-autor p").remove();

$("#mw-content-text p").each(function() {
    var $this = $(this);
    if( $.trim($this.html()) == "<br>") $this.remove();
});