minor change in how filter list(s) are rendered

This commit is contained in:
gorhill 2015-06-14 07:56:12 -04:00
parent e247f28b73
commit 1b78be4b7c
3 changed files with 7 additions and 3 deletions

View File

@ -552,13 +552,17 @@
"description": "Firefox-specific: appears as 'uBlock₀ (off)'" "description": "Firefox-specific: appears as 'uBlock₀ (off)'"
}, },
"docblockedPrompt1": { "docblockedPrompt1": {
"message": "uBlock has prevented the following page from loading:", "message": "uBlock Origin has prevented the following page from loading:",
"description": "English: uBlock₀ has prevented the following page from loading:" "description": "English: uBlock₀ has prevented the following page from loading:"
}, },
"docblockedPrompt2": { "docblockedPrompt2": {
"message": "Because of the following filter", "message": "Because of the following filter",
"description": "English: Because of the following filter" "description": "English: Because of the following filter"
}, },
"docblockedFoundIn": {
"message": "Found in:",
"description": "English: List of filter list names follows"
},
"docblockedBack": { "docblockedBack": {
"message": "Go back", "message": "Go back",
"description": "English: Go back" "description": "English: Go back"

View File

@ -75,7 +75,7 @@ select {
<div> <div>
<p data-i18n="docblockedPrompt2"></p> <p data-i18n="docblockedPrompt2"></p>
<p id="why" class="code"></p><!-- <p id="why" class="code"></p><!--
--><span id="whyex" style="display: none;"><br>&#x2022; <span></span> &#x2022;</span> --><span id="whyex" style="display: none;"><br><span data-i18n="docblockedFoundIn"></span> <span></span></span>
</div> </div>
<div> <div>

View File

@ -59,7 +59,7 @@ var details = {};
if ( Array.isArray(lists) === false || lists.length === 0 ) { if ( Array.isArray(lists) === false || lists.length === 0 ) {
return; return;
} }
var parent = uDom.nodeFromSelector('#whyex > span'); var parent = uDom.nodeFromSelector('#whyex > span:nth-of-type(2)');
var separator = ''; var separator = '';
var entry, url, node; var entry, url, node;
for ( var i = 0; i < lists.length; i++ ) { for ( var i = 0; i < lists.length; i++ ) {