mirror of https://github.com/gorhill/uBlock.git
code review re cd7b1c0eb4
This commit is contained in:
parent
cd7b1c0eb4
commit
bf28a83e2d
|
@ -838,17 +838,15 @@ FilterContainer.prototype.skipGenericCompiledContent = function(reader) {
|
||||||
// 1000 = cosmetic filtering
|
// 1000 = cosmetic filtering
|
||||||
reader.select(1000);
|
reader.select(1000);
|
||||||
|
|
||||||
let bucket;
|
|
||||||
|
|
||||||
while ( reader.next() ) {
|
while ( reader.next() ) {
|
||||||
this.acceptedCount += 1;
|
this.acceptedCount += 1;
|
||||||
let fingerprint = reader.fingerprint();
|
const fingerprint = reader.fingerprint();
|
||||||
if ( this.duplicateBuster.has(fingerprint) ) {
|
if ( this.duplicateBuster.has(fingerprint) ) {
|
||||||
this.discardedCount += 1;
|
this.discardedCount += 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
let args = reader.args();
|
const args = reader.args();
|
||||||
|
|
||||||
switch ( args[0] ) {
|
switch ( args[0] ) {
|
||||||
|
|
||||||
|
@ -863,7 +861,7 @@ FilterContainer.prototype.skipGenericCompiledContent = function(reader) {
|
||||||
// hash, example.*, .promoted-tweet
|
// hash, example.*, .promoted-tweet
|
||||||
case 8:
|
case 8:
|
||||||
this.duplicateBuster.add(fingerprint);
|
this.duplicateBuster.add(fingerprint);
|
||||||
bucket = this.specificFilters.get(args[1]);
|
const bucket = this.specificFilters.get(args[1]);
|
||||||
if ( bucket === undefined ) {
|
if ( bucket === undefined ) {
|
||||||
this.specificFilters.set(
|
this.specificFilters.set(
|
||||||
args[1],
|
args[1],
|
||||||
|
|
Loading…
Reference in New Issue