<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://demarquia.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js</id>
	<title>MediaWiki:Common.js - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://demarquia.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js"/>
	<link rel="alternate" type="text/html" href="https://demarquia.org/index.php?title=MediaWiki:Common.js&amp;action=history"/>
	<updated>2026-06-15T21:22:16Z</updated>
	<subtitle>Historial de revisiones de esta página en la wiki</subtitle>
	<generator>MediaWiki 1.44.5</generator>
	<entry>
		<id>https://demarquia.org/index.php?title=MediaWiki:Common.js&amp;diff=4033&amp;oldid=prev</id>
		<title>Peplogar en 19:38 27 dic 2025</title>
		<link rel="alternate" type="text/html" href="https://demarquia.org/index.php?title=MediaWiki:Common.js&amp;diff=4033&amp;oldid=prev"/>
		<updated>2025-12-27T19:38:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revisión del 21:38 27 dic 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l41&quot;&gt;Línea 41:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 41:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;});&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;});&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;function toggleDiv(id) {&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  var el = document.getElementById(id);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  el.style.display = (el.style.display === &#039;block&#039;) ? &#039;none&#039; : &#039;none&#039;;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Peplogar</name></author>
	</entry>
	<entry>
		<id>https://demarquia.org/index.php?title=MediaWiki:Common.js&amp;diff=3824&amp;oldid=prev</id>
		<title>Peplogar: Página creada con «/* Cualquier código JavaScript escrito aquí se cargará para todos los usuarios en cada carga de página */  /**  * Agrega un enlace &quot;Obtener URL Corta&quot; en el menú de herramientas (barra lateral)  * Copia al portapapeles una URL tipo: https://tusitio.com/index.php?curid=123  */ mw.loader.using([&#039;mediawiki.util&#039;], function () {     // Solo ejecutar si estamos viendo una página (no en modo edición, ni historial, ni páginas especiales)     // wgArticleId &gt; 0 signif…»</title>
		<link rel="alternate" type="text/html" href="https://demarquia.org/index.php?title=MediaWiki:Common.js&amp;diff=3824&amp;oldid=prev"/>
		<updated>2025-12-23T22:47:09Z</updated>

		<summary type="html">&lt;p&gt;Página creada con «&lt;span class=&quot;autocomment&quot;&gt;Cualquier código JavaScript escrito aquí se cargará para todos los usuarios en cada carga de página: &lt;/span&gt;  &lt;span class=&quot;autocomment&quot;&gt;*  * Agrega un enlace &amp;quot;Obtener URL Corta&amp;quot; en el menú de herramientas (barra lateral)  * Copia al portapapeles una URL tipo: https://tusitio.com/index.php?curid=123: &lt;/span&gt; mw.loader.using([&amp;#039;mediawiki.util&amp;#039;], function () {     // Solo ejecutar si estamos viendo una página (no en modo edición, ni historial, ni páginas especiales)     // wgArticleId &amp;gt; 0 signif…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/* Cualquier código JavaScript escrito aquí se cargará para todos los usuarios en cada carga de página */&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
 * Agrega un enlace &amp;quot;Obtener URL Corta&amp;quot; en el menú de herramientas (barra lateral)&lt;br /&gt;
 * Copia al portapapeles una URL tipo: https://tusitio.com/index.php?curid=123&lt;br /&gt;
 */&lt;br /&gt;
mw.loader.using([&amp;#039;mediawiki.util&amp;#039;], function () {&lt;br /&gt;
    // Solo ejecutar si estamos viendo una página (no en modo edición, ni historial, ni páginas especiales)&lt;br /&gt;
    // wgArticleId &amp;gt; 0 significa que la página existe en la base de datos&lt;br /&gt;
    if (mw.config.get(&amp;#039;wgArticleId&amp;#039;) &amp;gt; 0) {&lt;br /&gt;
        &lt;br /&gt;
        var portletLink = mw.util.addPortletLink(&lt;br /&gt;
            &amp;#039;p-tb&amp;#039;,                         // ID del menú de herramientas&lt;br /&gt;
            &amp;#039;#&amp;#039;,                            // Enlace (vacío porque usaremos JS)&lt;br /&gt;
            &amp;#039;🔗 Copiar URL Corta&amp;#039;,          // Texto del botón&lt;br /&gt;
            &amp;#039;t-shorturl&amp;#039;,                   // ID del elemento HTML&lt;br /&gt;
            &amp;#039;Copia el enlace permanente corto (curid) al portapapeles&amp;#039;, // Tooltip&lt;br /&gt;
            null,                           // Accesskey (opcional)&lt;br /&gt;
            &amp;#039;#t-info&amp;#039;                       // Dónde colocarlo (antes de &amp;quot;Información de la página&amp;quot;)&lt;br /&gt;
        );&lt;br /&gt;
&lt;br /&gt;
        $(portletLink).click(function (e) {&lt;br /&gt;
            e.preventDefault();&lt;br /&gt;
            &lt;br /&gt;
            // Construimos la URL limpia usando las variables de configuración de la Wiki&lt;br /&gt;
            var server = mw.config.get(&amp;#039;wgServer&amp;#039;);&lt;br /&gt;
            var script = mw.config.get(&amp;#039;wgScript&amp;#039;);&lt;br /&gt;
            var id = mw.config.get(&amp;#039;wgArticleId&amp;#039;);&lt;br /&gt;
            &lt;br /&gt;
            var shortUrl = server + script + &amp;#039;?curid=&amp;#039; + id;&lt;br /&gt;
&lt;br /&gt;
            // Copiar al portapapeles&lt;br /&gt;
            navigator.clipboard.writeText(shortUrl).then(function() {&lt;br /&gt;
                // Feedback visual simple (alerta nativa o notificación mw)&lt;br /&gt;
                mw.notify(&amp;#039;URL copiada: &amp;#039; + shortUrl);&lt;br /&gt;
            }, function(err) {&lt;br /&gt;
                console.error(&amp;#039;Error al copiar: &amp;#039;, err);&lt;br /&gt;
                alert(&amp;#039;No se pudo copiar automáticamente. La URL es:\n&amp;#039; + shortUrl);&lt;br /&gt;
            });&lt;br /&gt;
        });&lt;br /&gt;
    }&lt;br /&gt;
});&lt;/div&gt;</summary>
		<author><name>Peplogar</name></author>
	</entry>
</feed>