1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-06 19:02:30 +01:00
This commit is contained in:
gorhill 2017-01-23 17:16:37 -05:00
parent 8ab6c13167
commit 97db7ba13e

View File

@ -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();
};