mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
code review: important filter option senseless for exception filters
This commit is contained in:
parent
2d27cc28ce
commit
91cb61ce9c
@ -658,19 +658,15 @@ var filteringDialog = (function() {
|
||||
|
||||
var parseStaticInputs = function() {
|
||||
var filter = '';
|
||||
var value;
|
||||
value = selectValue('select.static.action');
|
||||
if ( value !== '' ) {
|
||||
var options = [];
|
||||
var block = selectValue('select.static.action') === '';
|
||||
if ( !block ) {
|
||||
filter = '@@';
|
||||
}
|
||||
value = selectValue('select.static.url');
|
||||
var value = selectValue('select.static.url');
|
||||
if ( value !== '' ) {
|
||||
filter += '||' + value;
|
||||
}
|
||||
var options = [];
|
||||
if ( selectValue('select.static.importance') !== '' ) {
|
||||
options.push('important');
|
||||
}
|
||||
value = selectValue('select.static.type');
|
||||
if ( value !== '' ) {
|
||||
options.push(uglyTypeFromSelector('static'));
|
||||
@ -683,6 +679,9 @@ var filteringDialog = (function() {
|
||||
options.push('domain=' + value);
|
||||
}
|
||||
}
|
||||
if ( block && selectValue('select.static.importance') !== '' ) {
|
||||
options.push('important');
|
||||
}
|
||||
if ( options.length ) {
|
||||
filter += '$' + options.join(',');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user