Diff
checker
Testo
Testo
Immagini
Documenti
Excel
Cartelle
Legal
Enterprise
Applicazione per desktop
Prezzi
Accedi
Scarica Diffchecker Desktop
Confronta il testo
Trova la differenza tra due file di testo
Strumenti
Cronologia
Editor live
Comprimi invariate
Senza a capo
Layout
Diviso
Unificato
Livello di dettaglio
Intelligente
Parola
Carattere
Evidenziazione sintassi
Scegli sintassi
Ignora
Trasforma testo
Vai alla prima modifica
Modifica input
Diffchecker Desktop
Il modo più sicuro per usare Diffchecker. Ottieni l'app Diffchecker Desktop: i tuoi diff non lasciano mai il tuo computer!
Ottieni Desktop
Untitled diff
Creato
11 anni fa
Il diff non scade mai
Eliminare
Esporta
Condividere
Spiegare
11 rimozioni
Linee
Totale
Rimosso
Caratteri
Totale
Rimosso
Per continuare a utilizzare questa funzione, aggiorna a
Diff
checker
Pro
Visualizza prezzi
33 linee
Copia tutti
6 aggiunte
Linee
Totale
Aggiunto
Caratteri
Totale
Aggiunto
Per continuare a utilizzare questa funzione, aggiorna a
Diff
checker
Pro
Visualizza prezzi
27 linee
Copia tutti
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;
Copia
Copiato
Copia
Copiato
return
;
return
false
;
}
}
Copia
Copiato
Copia
Copiato
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. */
Copia
Copiato
Copia
Copiato
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;
}
Copia
Copiato
Copia
Copiato
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)
Copia
Copiato
Copia
Copiato
FeedHandler.subscribeToFeed(feedURLs[index]);
return
FeedHandler.subscribeToFeed(feedURLs[index]);
Diff salvati
Testo originale
Apri file
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]);
Testo modificato
Apri file
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]);
Trovare la differenza