mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 09:31:01 +01:00
fix #2753
This commit is contained in:
parent
414765f526
commit
186c119202
2 changed files with 8 additions and 7 deletions
|
@ -578,12 +578,12 @@ body.colorBlind #netFilteringDialog .dialog > div.containers > div.dynamic tr.e
|
|||
|
||||
#filterFinderDialog .dialog {
|
||||
padding: 1em;
|
||||
word-break: break-all;
|
||||
}
|
||||
#filterFinderDialog .dialog code {
|
||||
background: #eee;
|
||||
font-size: 85%;
|
||||
padding: 3px;
|
||||
word-break: break-all;
|
||||
}
|
||||
#filterFinderDialog .dialog ul {
|
||||
font-size: larger;
|
||||
|
|
|
@ -1227,8 +1227,8 @@ var reverseLookupManager = (function() {
|
|||
if ( Array.isArray(lists) === false || lists.length === 0 ) {
|
||||
return null;
|
||||
}
|
||||
var node;
|
||||
var p = document.createElement('p');
|
||||
var node,
|
||||
p = document.createElement('p');
|
||||
|
||||
reSentence1.lastIndex = 0;
|
||||
var matches = reSentence1.exec(sentence1Template);
|
||||
|
@ -1237,7 +1237,10 @@ var reverseLookupManager = (function() {
|
|||
} else {
|
||||
node = uDom.nodeFromSelector('#filterFinderDialogSentence1 > span').cloneNode(true);
|
||||
node.childNodes[0].textContent = sentence1Template.slice(0, matches.index);
|
||||
node.childNodes[1].textContent = filter;
|
||||
// https://github.com/gorhill/uBlock/issues/2753
|
||||
node.childNodes[1].textContent = filter.length <= 1024
|
||||
? filter
|
||||
: filter.slice(0, 1023) + '…';
|
||||
node.childNodes[2].textContent = sentence1Template.slice(reSentence1.lastIndex);
|
||||
}
|
||||
p.appendChild(node);
|
||||
|
@ -1273,9 +1276,7 @@ var reverseLookupManager = (function() {
|
|||
|
||||
for ( var filter in response ) {
|
||||
var p = nodeFromFilter(filter, response[filter]);
|
||||
if ( p === null ) {
|
||||
continue;
|
||||
}
|
||||
if ( p === null ) { continue; }
|
||||
dialog.appendChild(p);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue