Diferencia entre revisiones de «MediaWiki:Common.js»

Página de la interfaz de MediaWiki
Sin resumen de edición
Etiqueta: Revertido
Sin resumen de edición
Etiqueta: Reversión manual
Línea 6: Línea 6:
}
}
} );
} );
function copyToClipboard(elemento) {
  var $temp = $("<input>")
  $("body").append($temp);
  $temp.val($(elemento).text()).select();
  document.execCommand("copy");
  $temp.remove();
}

Revisión del 22:06 9 oct 2021

// ocultar mw-pt-translate-header para los anónimos

mw.loader.using( [ 'mediawiki.user' ], function ( ) {
	if ( mw.user.isAnon() == 1 ) {
		mw.util.addCSS( '.mw-pt-translate-header {display:none}' );
	}
} );