mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-06 19:02:30 +01:00
fix #2332
This commit is contained in:
parent
8ab6c13167
commit
97db7ba13e
@ -31,7 +31,8 @@
|
||||
|
||||
var listDetails = {},
|
||||
filteringSettingsHash = '',
|
||||
lastUpdateTemplateString = vAPI.i18n('3pLastUpdate');
|
||||
lastUpdateTemplateString = vAPI.i18n('3pLastUpdate'),
|
||||
reValidExternalList = /[a-z-]+:\/\/\S*\/\S+/;
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
@ -111,6 +112,7 @@ var renderFilterLists = function(soft) {
|
||||
} else {
|
||||
li.classList.remove('mustread');
|
||||
}
|
||||
li.classList.remove('toRemove');
|
||||
}
|
||||
// https://github.com/gorhill/uBlock/issues/1429
|
||||
if ( !soft ) {
|
||||
@ -314,8 +316,11 @@ var hashFromCurrentFromSettings = function() {
|
||||
listHash.push(liEntry.getAttribute('data-listkey'));
|
||||
}
|
||||
}
|
||||
hash.push(listHash.sort().join());
|
||||
hash.push(document.getElementById('externalLists').value.trim());
|
||||
hash.push(
|
||||
listHash.sort().join(),
|
||||
reValidExternalList.test(document.getElementById('externalLists').value),
|
||||
document.querySelector('#lists .listEntry.toRemove') !== null
|
||||
);
|
||||
return hash.join();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user