From 068b1eef71ed1167e7e39effa00cda7deb9251f2 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 23 Nov 2020 20:31:48 -0500 Subject: Text scanner improvements (#1056) * Only ignore nodes on non-web pages * Fix issue where options might not be assigned on nested frontends * Refactor default TextScanner options * Add option to enable search only on click * Simplify restore state assignment * Update options context passing * Fix empty title * Use TextScanner to scan content inside of Display * Rename ignoreNodes to excludeSelector(s) * Fix options update incorrectly triggering a re-search * Fix copy throwing an error on the search page * Replace _onSearchQueryUpdated with _search * Use include selector instead of exclude selector --- ext/bg/js/query-parser.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'ext/bg/js/query-parser.js') diff --git a/ext/bg/js/query-parser.js b/ext/bg/js/query-parser.js index 16af77b2..d3065188 100644 --- a/ext/bg/js/query-parser.js +++ b/ext/bg/js/query-parser.js @@ -34,8 +34,6 @@ class QueryParser extends EventDispatcher { this._queryParserModeSelect = document.querySelector('#query-parser-mode-select'); this._textScanner = new TextScanner({ node: this._queryParser, - ignoreElements: () => [], - ignorePoint: null, getOptionsContext, documentUtil, searchTerms: true, -- cgit v1.2.3