mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 09:31:01 +01:00
fix #3580
This commit is contained in:
parent
a470c119aa
commit
333c6f60fb
1 changed files with 3 additions and 13 deletions
|
@ -181,14 +181,6 @@ var fromCosmeticFilter = function(details) {
|
|||
found = prefix + selector;
|
||||
}
|
||||
break;
|
||||
case 1: // id-based
|
||||
if (
|
||||
fargs[2] === selector.slice(1) &&
|
||||
selector.charAt(0) === '#'
|
||||
) {
|
||||
found = prefix + selector;
|
||||
}
|
||||
break;
|
||||
case 2: // class-based
|
||||
if (
|
||||
fargs[1] === selector.slice(1) &&
|
||||
|
@ -197,11 +189,9 @@ var fromCosmeticFilter = function(details) {
|
|||
found = prefix + selector;
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if (
|
||||
fargs[2] === selector.slice(1) &&
|
||||
selector.charAt(0) === '.'
|
||||
) {
|
||||
case 1: // id-based
|
||||
case 3: // class-based
|
||||
if ( fargs[2] === selector ) {
|
||||
found = prefix + selector;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue