Skip to content

Commit

Permalink
Merge branch 'master' of github.com:gorhill/uBlock into lz4
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Aug 4, 2018
2 parents 8ae77e6 + b34c897 commit 48d1cca
Show file tree
Hide file tree
Showing 14 changed files with 64 additions and 53 deletions.
6 changes: 3 additions & 3 deletions dist/description/description-es.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ Uso: El botón grande de apagado/encendido en la ventana de la aplicación, es p

***

Flexible, es más que un "ad blocker": también puede leer y crear filtros desde archivos hosts.
Flexible, es más que un "bloqueador de anuncios": también puede leer y crear filtros desde archivos hosts.

Por defecto ya trae configuradas las siguientes listas de filtros:

- EasyList
- Lista de servidores de anuncios de Peter Lowe
- Peter Lowe’s Ad server list
- EasyPrivacy
- Malware domains

Expand All @@ -22,7 +22,7 @@ Otras listas disponibles pueden ser seleccionadas, si se desea:
- hpHosts’s Ad and tracking servers
- MVPS HOSTS
- Spam404
- Etc.
- Y muchas más

Por supuesto, mientras más filtros se activen, mayor será el consumo de memoria. No obstante, incluso después de agregar las dos listas adicionales de Fanboy y la 'hpHosts’s Ad and tracking servers', uBlock₀ consume menos memoria que otros bloqueadores similares.

Expand Down
6 changes: 3 additions & 3 deletions dist/firefox/updates.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"uBlock0@raymondhill.net": {
"updates": [
{
"version": "1.16.15.5",
"version": "1.16.15.100",
"applications": { "gecko": { "strict_min_version": "52" } },
"update_info_url": "https://github.com/gorhill/uBlock/releases/tag/1.16.15b5",
"update_link": "https://github.com/gorhill/uBlock/releases/download/1.16.15b5/uBlock0.firefox.signed.xpi"
"update_info_url": "https://github.com/gorhill/uBlock/releases/tag/1.16.15rc0",
"update_link": "https://github.com/gorhill/uBlock/releases/download/1.16.15rc0/uBlock0.firefox.signed.xpi"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion dist/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.16.15.6
1.16.15.100
26 changes: 13 additions & 13 deletions src/_locales/es/messages.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extName": {
"message": "uBlock",
"message": "uBlock Origin",
"description": "extension name."
},
"extShortDesc": {
Expand Down Expand Up @@ -28,7 +28,7 @@
"description": "appears as tab name in dashboard"
},
"whitelistPageName": {
"message": "Lista blanca",
"message": "Lista de permitidos",
"description": "appears as tab name in dashboard"
},
"shortcutsPageName": {
Expand All @@ -44,11 +44,11 @@
"description": "appears as tab name in dashboard"
},
"advancedSettingsPageName": {
"message": "Ajustes avanzados",
"message": "Configuración avanzada",
"description": "Title for the advanced settings page"
},
"popupPowerSwitchInfo": {
"message": "Clic: desactivar\/activar uBlock₀ para este sitio.\n\nCtrl + clic: deshabilitar uBlock₀ sólo en esta página.",
"message": "Clic: deshabilitar\/habilitar uBlock₀ para este sitio.\n\nCtrl + clic: deshabilitar uBlock₀ sólo en esta página.",
"description": "English: Click: disable\/enable uBlock₀ for this site.\n\nCtrl+click: disable uBlock₀ only on this page."
},
"popupPowerSwitchInfo1": {
Expand Down Expand Up @@ -96,7 +96,7 @@
"description": "Tooltip used for the logger icon in the panel"
},
"popupTipNoPopups": {
"message": "Alternar bloqueo de todos los pop-ups para este sitio",
"message": "Alternar bloqueo de ventanas emergentes en este sitio",
"description": "Tooltip for the no-popups per-site switch"
},
"popupTipNoPopups1": {
Expand Down Expand Up @@ -256,11 +256,11 @@
"description": ""
},
"settingsAdvancedUserPrompt": {
"message": "Soy usuario avanzado (<a href='https:\/\/github.com\/gorhill\/uBlock\/wiki\/Advanced-user-features'> Lectura Obligatoria - Inglés<\/a>)",
"message": "Soy usuario avanzado (<a href='https:\/\/github.com\/gorhill\/uBlock\/wiki\/Advanced-user-features'>lectura obligatoria en inglés<\/a>)",
"description": ""
},
"settingsAdvancedUserSettings": {
"message": "ajustes avanzados",
"message": "configuración avanzada",
"description": "For the tooltip of a link which gives access to advanced settings"
},
"settingsPrefetchingDisabledPrompt": {
Expand Down Expand Up @@ -476,11 +476,11 @@
"description": "English: List of your dynamic filtering rules."
},
"rulesFormatHint": {
"message": "Sintaxis de las reglas: <code>origen destino tipo acción<\/code> (<a href='https:\/\/github.com\/gorhill\/uBlock\/wiki\/Dynamic-filtering:-rule-syntax'> documentación completa<\/a>).",
"message": "Sintaxis de las reglas: <code>origen destino tipo acción<\/code> (<a href='https:\/\/github.com\/gorhill\/uBlock\/wiki\/Dynamic-filtering:-rule-syntax'>documentación completa<\/a>).",
"description": "English: dynamic rule syntax and full documentation."
},
"whitelistPrompt": {
"message": "Lista de servidores para los cuales se deshabilitará uBlock₀. Una entrada por línea. Se omitirán nombres de servidores inválidos.",
"message": "Lista de permitidos de páginas web para los cuales se deshabilitará uBlock₀. Una entrada por línea. Se omitirán nombres de páginas web inválidos.",
"description": "English: An overview of the content of the dashboard's Whitelist pane."
},
"whitelistImport": {
Expand Down Expand Up @@ -516,7 +516,7 @@
"description": "English: Filter"
},
"logAll": {
"message": "Todas",
"message": "Todo",
"description": "Appears in the logger's tab selector"
},
"logBehindTheScene": {
Expand Down Expand Up @@ -624,7 +624,7 @@
"description": "Text for button to create a backup of all settings"
},
"aboutBackupFilename": {
"message": "ublock-respaldo_{{datetime}}.txt",
"message": "ublock-mi-respaldo_{{datetime}}.txt",
"description": "English: my-ublock-backup_{{datetime}}.txt"
},
"aboutRestoreDataButton": {
Expand Down Expand Up @@ -716,7 +716,7 @@
"description": "English: Close this window"
},
"docblockedProceed": {
"message": "Deshabilitar bloqueo estricto para {{hostname}}",
"message": "Deshabilitar bloqueo estricto para {{hostname}}",
"description": "English: Disable strict blocking for {{hostname}} ..."
},
"docblockedDisableTemporary": {
Expand Down Expand Up @@ -748,7 +748,7 @@
"description": "used as a prompt for the user to provide a custom device name"
},
"advancedSettingsWarning": {
"message": "¡Alerta! Cambie estos ajustes avanzados bajo su propio riesgo.",
"message": "¡Alerta! Cambie estas configuraciones avanzadas bajo su propio riesgo.",
"description": "A warning to users at the top of 'Advanced settings' page"
},
"genericSubmit": {
Expand Down
4 changes: 2 additions & 2 deletions src/_locales/et/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"description": "appears as tab name in dashboard"
},
"statsPageName": {
"message": "uBlock₀ — Võrgutaotluste logi",
"message": "uBlock₀ — Logija",
"description": "Title for the logger window"
},
"aboutPageName": {
Expand Down Expand Up @@ -92,7 +92,7 @@
"description": "English: Enter element picker mode"
},
"popupTipLog": {
"message": "Avage logija",
"message": "Ava logija",
"description": "Tooltip used for the logger icon in the panel"
},
"popupTipNoPopups": {
Expand Down
10 changes: 5 additions & 5 deletions src/_locales/hi/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"description": "appears as tab name in dashboard"
},
"shortcutsPageName": {
"message": "Shortcuts",
"message": "शॉर्टकट",
"description": "appears as tab name in dashboard"
},
"statsPageName": {
Expand Down Expand Up @@ -124,19 +124,19 @@
"description": "Tooltip for the no-cosmetic-filtering per-site switch"
},
"popupTipNoCosmeticFiltering1": {
"message": "Click to disable cosmetic filtering on this site",
"message": "इस साइट पर कॉस्मेटिक फ़िल्टरिंग अक्षम करने के लिए क्लिक करें",
"description": "Tooltip for the no-cosmetic-filtering per-site switch"
},
"popupTipNoCosmeticFiltering2": {
"message": "Click to enable cosmetic filtering on this site",
"message": "इस साइट पर कॉस्मेटिक फ़िल्टरिंग सक्षम करने के लिए क्लिक करें",
"description": "Tooltip for the no-cosmetic-filtering per-site switch"
},
"popupTipNoRemoteFonts": {
"message": "बाहरी फ़ॉन्ट्स को ब्लॉक करें",
"description": "Tooltip for the no-remote-fonts per-site switch"
},
"popupTipNoRemoteFonts1": {
"message": "Click to block remote fonts on this site",
"message": "इस साइट पर रिमोट फोंट को अवरुद्ध करने के लिए क्लिक करें",
"description": "Tooltip for the no-remote-fonts per-site switch"
},
"popupTipNoRemoteFonts2": {
Expand Down Expand Up @@ -732,7 +732,7 @@
"description": "tooltip"
},
"cloudPull": {
"message": "Import from cloud storage",
"message": "क्लाउड स्टोरेज से आयात करें",
"description": "tooltip"
},
"cloudPullAndMerge": {
Expand Down
2 changes: 1 addition & 1 deletion src/_locales/id/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
"description": "Below this sentence, the filter list(s) in which the filter was found"
},
"loggerStaticFilteringFinderSentence2": {
"message": "Static filter <code>{{filter}}<\/code> could not be found in any of the currently enabled filter lists",
"message": "Filter statis <code>{{filter}}<\/code> tidak dapat ditemukan di salah satu daftar filter yang aktif saat ini",
"description": "Message to show when a filter cannot be found in any filter lists"
},
"aboutChangelog": {
Expand Down
2 changes: 1 addition & 1 deletion src/_locales/ka/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
"description": "Below this sentence, the filter list(s) in which the filter was found"
},
"loggerStaticFilteringFinderSentence2": {
"message": "Static filter <code>{{filter}}<\/code> could not be found in any of the currently enabled filter lists",
"message": "მუდმივი ფილტრი <code>{{filter}}<\/code> ვერ მოიძებნა ამჟამად გამოყენებულ ფილტრებს შორის",
"description": "Message to show when a filter cannot be found in any filter lists"
},
"aboutChangelog": {
Expand Down
2 changes: 1 addition & 1 deletion src/_locales/ko/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"description": "appears as tab name in dashboard"
},
"shortcutsPageName": {
"message": "Shortcuts",
"message": "단축키",
"description": "appears as tab name in dashboard"
},
"statsPageName": {
Expand Down
6 changes: 3 additions & 3 deletions src/_locales/nb/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"description": "appears as tab name in dashboard"
},
"shortcutsPageName": {
"message": "Shortcuts",
"message": "Snarveier",
"description": "appears as tab name in dashboard"
},
"statsPageName": {
Expand Down Expand Up @@ -592,7 +592,7 @@
"description": "Below this sentence, the filter list(s) in which the filter was found"
},
"loggerStaticFilteringFinderSentence2": {
"message": "Static filter <code>{{filter}}<\/code> could not be found in any of the currently enabled filter lists",
"message": "Statisk filter <code>{{filter}}<\/code> ble ikke funnet i noen av filterlistene som er aktiverte nå",
"description": "Message to show when a filter cannot be found in any filter lists"
},
"aboutChangelog": {
Expand Down Expand Up @@ -772,7 +772,7 @@
"description": "A context menu entry, present when large media elements have been blocked on the current site"
},
"shortcutCapturePlaceholder": {
"message": "Type a shortcut",
"message": "Oppfør en snarvei",
"description": "Placeholder string for input field used to capture a keyboard shortcut"
},
"dummy": {
Expand Down
12 changes: 6 additions & 6 deletions src/_locales/pl/messages.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extName": {
"message": "uBlock",
"message": "uBlock Origin",
"description": "extension name."
},
"extShortDesc": {
Expand Down Expand Up @@ -36,7 +36,7 @@
"description": "appears as tab name in dashboard"
},
"statsPageName": {
"message": "uBlock Dziennik żądań sieciowych",
"message": "uBlock₀ – Dziennik żądań sieciowych",
"description": "Title for the logger window"
},
"aboutPageName": {
Expand Down Expand Up @@ -240,7 +240,7 @@
"description": "English: Show the number of blocked requests on the icon"
},
"settingsTooltipsPrompt": {
"message": "Nie wyświetlaj podpowiedzi",
"message": "Nie wyświetlaj dymków podpowiedzi",
"description": "A checkbox in the Settings pane"
},
"settingsContextMenuPrompt": {
Expand Down Expand Up @@ -268,7 +268,7 @@
"description": "English: "
},
"settingsHyperlinkAuditingDisabledPrompt": {
"message": "Nie śledź kliknięć odnośników",
"message": "Wyłącz śledzenie kliknięć odnośników",
"description": "English: "
},
"settingsWebRTCIPAddressHiddenPrompt": {
Expand Down Expand Up @@ -692,7 +692,7 @@
"description": "Firefox-specific: appears as 'uBlock₀ (off)'"
},
"docblockedPrompt1": {
"message": "uBlock zablokował wczytywanie następującej strony:",
"message": "uBlock Origin zablokował wczytywanie następującej strony:",
"description": "English: uBlock₀ has prevented the following page from loading:"
},
"docblockedPrompt2": {
Expand All @@ -716,7 +716,7 @@
"description": "English: Close this window"
},
"docblockedProceed": {
"message": "Wyłącz skrupulatne blokowanie na {{hostname}}",
"message": "Wyłącz rygorystyczne blokowanie dla {{hostname}}",
"description": "English: Disable strict blocking for {{hostname}} ..."
},
"docblockedDisableTemporary": {
Expand Down
2 changes: 1 addition & 1 deletion src/_locales/pt_PT/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@
"description": "A context menu entry, present when large media elements have been blocked on the current site"
},
"shortcutCapturePlaceholder": {
"message": "Digite um atalho",
"message": "Digitar um atalho",
"description": "Placeholder string for input field used to capture a keyboard shortcut"
},
"dummy": {
Expand Down
6 changes: 3 additions & 3 deletions src/_locales/ro/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"description": "appears as tab name in dashboard"
},
"shortcutsPageName": {
"message": "Shortcuts",
"message": "Comenzi rapide",
"description": "appears as tab name in dashboard"
},
"statsPageName": {
Expand Down Expand Up @@ -592,7 +592,7 @@
"description": "Below this sentence, the filter list(s) in which the filter was found"
},
"loggerStaticFilteringFinderSentence2": {
"message": "Static filter <code>{{filter}}<\/code> could not be found in any of the currently enabled filter lists",
"message": "Filtru static <code>{{filter}}<\/code> nu se gasește în niciuna dintre listele de filtre activate",
"description": "Message to show when a filter cannot be found in any filter lists"
},
"aboutChangelog": {
Expand Down Expand Up @@ -772,7 +772,7 @@
"description": "A context menu entry, present when large media elements have been blocked on the current site"
},
"shortcutCapturePlaceholder": {
"message": "Type a shortcut",
"message": "Tastați o comandă rapidă",
"description": "Placeholder string for input field used to capture a keyboard shortcut"
},
"dummy": {
Expand Down
31 changes: 21 additions & 10 deletions src/js/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,27 @@ var safeTextToTagNode = function(text) {
}
};

var safeTextToTextNode = function(text) {
// TODO: remove once no more HTML entities in translation files.
if ( text.indexOf('&') !== -1 ) {
text = text.replace(/&ldquo;/g, '“')
.replace(/&rdquo;/g, '”')
.replace(/&lsquo;/g, '‘')
.replace(/&rsquo;/g, '’');
}
return document.createTextNode(text);
};
var safeTextToTextNode = (function() {
let entities = new Map([
// TODO: Remove quote entities once no longer present in translation
// files. Other entities must stay.
[ '&ldquo;', '“' ],
[ '&rdquo;', '”' ],
[ '&lsquo;', '‘' ],
[ '&rsquo;', '’' ],
[ '&lt;', '<' ],
[ '&gt;', '>' ],
]);
let decodeEntities = match => {
return entities.get(match) || match;
};
return function(text) {
if ( text.indexOf('&') !== -1 ) {
text = text.replace(/&[a-z]+;/g, decodeEntities);
}
return document.createTextNode(text);
};
})();

var safeTextToDOM = function(text, parent) {
if ( text === '' ) { return; }
Expand Down

0 comments on commit 48d1cca

Please sign in to comment.