diff --git a/js/element-picker.js b/js/element-picker.js index aa02ec8df..569b55b71 100644 --- a/js/element-picker.js +++ b/js/element-picker.js @@ -638,8 +638,8 @@ var showDialog = function(options) { root.style.display = src.length !== 0 ? '' : 'none'; }; - populate(netFilterCandidates, 'ul > li:nth-of-type(1)'); - populate(cosmeticFilterCandidates, 'ul > li:nth-of-type(2)'); + populate(netFilterCandidates, '#netFilters'); + populate(cosmeticFilterCandidates, '#cosmeticFilters'); divDialog.querySelector('ul').style.display = netFilterCandidates.length || cosmeticFilterCandidates.length ? '' : 'none'; divDialog.querySelector('#create').disabled = true; @@ -938,8 +938,8 @@ var startPicker = function() { '', '', '