Diff
checker
Texto
Texto
Imagens
Documentos
Excel
Pastas
Legal
Enterprise
Aplicativo para desktop
Preços
Fazer login
Baixar o Diffchecker Desktop
Comparar texto
Encontre a diferença entre dois arquivos de texto
Ferramentas
Histórico
Editor live
Recolher inalteradas
Sem quebra de linha
Layout
Dividido
Unificado
Nível de detalhe
Inteligente
Palavra
Caractere
Realce de sintaxe
Escolher sintaxe
Ignorar
Transformar texto
Ir à primeira mudança
Editar entrada
Diffchecker Desktop
A maneira mais segura de usar o Diffchecker. Obtenha o aplicativo Diffchecker Desktop: seus diffs nunca saem do seu computador!
Obter Desktop
Untitled diff
Criado
há 11 anos
O diff nunca expira
Limpar
Exportar
Compartilhar
Explicar
11 remoções
Linhas
Total
Removido
Caracteres
Total
Removido
Para continuar usando este recurso, atualize para
Diff
checker
Pro
Ver preços
33 linhas
Copiar tudo
6 adições
Linhas
Total
Adicionado
Caracteres
Total
Adicionado
Para continuar usando este recurso, atualize para
Diff
checker
Pro
Ver preços
27 linhas
Copiar tudo
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]);
Diferenças salvas
Texto original
Abrir arquivo
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 alterado
Abrir arquivo
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 Diferença