mirror of https://github.com/gorhill/uBlock.git
fix #3580
This commit is contained in:
parent
a470c119aa
commit
333c6f60fb
|
@ -181,14 +181,6 @@ var fromCosmeticFilter = function(details) {
|
||||||
found = prefix + selector;
|
found = prefix + selector;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 1: // id-based
|
|
||||||
if (
|
|
||||||
fargs[2] === selector.slice(1) &&
|
|
||||||
selector.charAt(0) === '#'
|
|
||||||
) {
|
|
||||||
found = prefix + selector;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 2: // class-based
|
case 2: // class-based
|
||||||
if (
|
if (
|
||||||
fargs[1] === selector.slice(1) &&
|
fargs[1] === selector.slice(1) &&
|
||||||
|
@ -197,11 +189,9 @@ var fromCosmeticFilter = function(details) {
|
||||||
found = prefix + selector;
|
found = prefix + selector;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 1: // id-based
|
||||||
if (
|
case 3: // class-based
|
||||||
fargs[2] === selector.slice(1) &&
|
if ( fargs[2] === selector ) {
|
||||||
selector.charAt(0) === '.'
|
|
||||||
) {
|
|
||||||
found = prefix + selector;
|
found = prefix + selector;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue