Diff
checker
Texto
Texto
Imágenes
Documentos
Excel
Carpetas
Legal
Enterprise
Aplicación de escritorio
Precios
Iniciar sesión
Descargar Diffchecker Desktop
Comparar texto
Encuentra la diferencia entre dos archivos de texto
Herramientas
Historial
Editor live
Ocultar sin cambios
Sin ajuste de línea
Vista
Dividido
Unificado
Nivel de detalle
Inteligente
Palabra
Letra
Resaltado de sintaxis
Elegir sintaxis
Ignorar
Transformar texto
Ir al primer cambio
Editar entrada
Diffchecker Desktop
La forma más segura de usar Diffchecker. ¡Obtén la app de Diffchecker Desktop: tus diffs nunca salen de tu computadora!
Obtener Desktop
Untitled diff
Creado
hace 11 años
El diff nunca expira
Borrar
Exportar
Compartir
Explicar
11 eliminaciones
Líneas
Total
Eliminado
Caracteres
Total
Eliminado
Para continuar usando esta función, actualice a
Diff
checker
Pro
Ver precios
33 líneas
Copiar todo
6 adiciones
Líneas
Total
Añadido
Caracteres
Total
Añadido
Para continuar usando esta función, actualice a
Diff
checker
Pro
Ver precios
27 líneas
Copiar todo
const TITLE = "Subscribe to this page\u2026";
const TITLE = "Subscribe to this page\u2026";
const kPromptService = Services.prompt;
const kPromptService = Services.prompt;
function selectItems(aText, aArray) {
function selectItems(aText, aArray) {
var selected = {};
var selected = {};
var result = kPromptService.select(null, TITLE, aText, aArray.length, aArray, selected);
var result = kPromptService.select(null, TITLE, aText, aArray.length, aArray, selected);
if (result) return selected.value;
if (result) return selected.value;
Copiar
Copiado
Copiar
Copiado
return
;
return
false
;
}
}
Copiar
Copiado
Copiar
Copiado
var feeds =
content.document.querySelectorAll('link[rel="alternate"]\[type^="application/"]\[type$="+xml"]');
var feeds =
gBrowser.selectedBrowser.feeds;
/* Note: keyconfig keeps adding spaces between ']' and '[' when I saved the code, so I used '\['.
Must be because the way keyconfig store codes in the preferences. */
Copiar
Copiado
Copiar
Copiado
if (!feeds
.length) {
if (!feeds
)
kPromptService.alert(null, TITLE, "No feeds found on this page.");
return
kPromptService.alert(null, TITLE, "No feeds found on this page.");
return;
}
Copiar
Copiado
Copiar
Copiado
if (feeds.length === 1)
{
if (feeds.length === 1)
FeedHandler.subscribeToFeed(feeds[0].href);
return
FeedHandler.subscribeToFeed(feeds[0].href);
return;
}
var feedNames = [];
var feedNames = [];
var feedURLs = [];
var feedURLs = [];
for (var i = 0; i < feeds.length; i++) {
for (var i = 0; i < feeds.length; i++) {
feedNames.push(feeds[i].title);
feedNames.push(feeds[i].title);
feedURLs.push(feeds[i].href);
feedURLs.push(feeds[i].href);
}
}
var index = selectItems("Select feed to subscribe:", feedNames);
var index = selectItems("Select feed to subscribe:", feedNames);
if (index !== undefined)
if (index !== undefined)
Copiar
Copiado
Copiar
Copiado
FeedHandler.subscribeToFeed(feedURLs[index]);
return
FeedHandler.subscribeToFeed(feedURLs[index]);
Diferencias guardadas
Texto original
Abrir archivo
const TITLE = "Subscribe to this page\u2026"; const kPromptService = Services.prompt; function selectItems(aText, aArray) { var selected = {}; var result = kPromptService.select(null, TITLE, aText, aArray.length, aArray, selected); if (result) return selected.value; return; } var feeds = content.document.querySelectorAll('link[rel="alternate"]\[type^="application/"]\[type$="+xml"]'); /* Note: keyconfig keeps adding spaces between ']' and '[' when I saved the code, so I used '\['. Must be because the way keyconfig store codes in the preferences. */ if (!feeds.length) { kPromptService.alert(null, TITLE, "No feeds found on this page."); return; } if (feeds.length === 1) { FeedHandler.subscribeToFeed(feeds[0].href); return; } var feedNames = []; var feedURLs = []; for (var i = 0; i < feeds.length; i++) { feedNames.push(feeds[i].title); feedURLs.push(feeds[i].href); } var index = selectItems("Select feed to subscribe:", feedNames); if (index !== undefined) FeedHandler.subscribeToFeed(feedURLs[index]);
Texto modificado
Abrir archivo
const TITLE = "Subscribe to this page\u2026"; const kPromptService = Services.prompt; function selectItems(aText, aArray) { var selected = {}; var result = kPromptService.select(null, TITLE, aText, aArray.length, aArray, selected); if (result) return selected.value; return false; } var feeds = gBrowser.selectedBrowser.feeds; if (!feeds) return kPromptService.alert(null, TITLE, "No feeds found on this page."); if (feeds.length === 1) return FeedHandler.subscribeToFeed(feeds[0].href); var feedNames = []; var feedURLs = []; for (var i = 0; i < feeds.length; i++) { feedNames.push(feeds[i].title); feedURLs.push(feeds[i].href); } var index = selectItems("Select feed to subscribe:", feedNames); if (index !== undefined) return FeedHandler.subscribeToFeed(feedURLs[index]);
Encontrar la diferencia