mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-04 01:59:38 +02:00
minor code review
This commit is contained in:
parent
e72c93ebd6
commit
458b9758ef
@ -273,7 +273,7 @@ var domFilterer = {
|
|||||||
|
|
||||||
addSelector: function(s) {
|
addSelector: function(s) {
|
||||||
if ( allSelectors[s] || allExceptions[s] ) {
|
if ( allSelectors[s] || allExceptions[s] ) {
|
||||||
return this;
|
return;
|
||||||
}
|
}
|
||||||
allSelectors[s] = true;
|
allSelectors[s] = true;
|
||||||
var sel0 = s, sel1 = '';
|
var sel0 = s, sel1 = '';
|
||||||
@ -292,7 +292,7 @@ var domFilterer = {
|
|||||||
this.job3._0.push(sel0);
|
this.job3._0.push(sel0);
|
||||||
this.job3._1 = undefined;
|
this.job3._1 = undefined;
|
||||||
}
|
}
|
||||||
return this;
|
return;
|
||||||
}
|
}
|
||||||
sel0 = sel0.slice(0, sel0.length - sel1.length);
|
sel0 = sel0.slice(0, sel0.length - sel1.length);
|
||||||
if ( sel1.lastIndexOf(':has', 0) === 0 ) {
|
if ( sel1.lastIndexOf(':has', 0) === 0 ) {
|
||||||
@ -305,7 +305,7 @@ var domFilterer = {
|
|||||||
} else if ( sel1.lastIndexOf(':xpath',0) === 0 ) {
|
} else if ( sel1.lastIndexOf(':xpath',0) === 0 ) {
|
||||||
this.jobQueue.push({ t: 'xpath-hide', raw: s, _0: sel1.slice(7, -1) });
|
this.jobQueue.push({ t: 'xpath-hide', raw: s, _0: sel1.slice(7, -1) });
|
||||||
}
|
}
|
||||||
return this;
|
return;
|
||||||
},
|
},
|
||||||
|
|
||||||
addSelectors: function(aa) {
|
addSelectors: function(aa) {
|
||||||
|
Loading…
Reference in New Issue
Block a user