mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
minor code review: render domain=
option as the last one
This commit is contained in:
parent
7073737593
commit
c3582e1aca
@ -195,6 +195,23 @@ var filterDecompiler = (function() {
|
||||
var tfields = fid !== '.' ? vfields[3].split('\t') : [];
|
||||
var tfield0 = tfields[0];
|
||||
|
||||
// Filter options
|
||||
// Importance
|
||||
if ( bits & 0x02 ) {
|
||||
opts.push('important');
|
||||
}
|
||||
// Party
|
||||
if ( bits & 0x08 ) {
|
||||
opts.push('third-party');
|
||||
} else if ( bits & 0x04 ) {
|
||||
opts.push('first-party');
|
||||
}
|
||||
// Type
|
||||
var typeVal = bits >>> 4 & 0x0F;
|
||||
if ( typeVal ) {
|
||||
opts.push(typeValToTypeName[typeVal]);
|
||||
}
|
||||
|
||||
switch ( fid ) {
|
||||
case '.':
|
||||
filter += '||' + vfields[2] + '^';
|
||||
@ -258,22 +275,6 @@ var filterDecompiler = (function() {
|
||||
break;
|
||||
}
|
||||
|
||||
// Filter options
|
||||
// Importance
|
||||
if ( bits & 0x02 ) {
|
||||
opts.push('important');
|
||||
}
|
||||
// Party
|
||||
if ( bits & 0x08 ) {
|
||||
opts.push('third-party');
|
||||
} else if ( bits & 0x04 ) {
|
||||
opts.push('first-party');
|
||||
}
|
||||
// Type
|
||||
var typeVal = bits >>> 4 & 0x0F;
|
||||
if ( typeVal ) {
|
||||
opts.push(typeValToTypeName[typeVal]);
|
||||
}
|
||||
if ( opts.length !== 0 ) {
|
||||
filter += '$' + opts.join(',');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user