summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-01-16 19:35:19 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-01-16 22:39:26 -0500
commitf969b5b8a9fa3b77bfc3bbb13830913c620c48da (patch)
tree045816e97582e08527cbe8a8e9dcf8461a1386ac
parent62da7ec5cc3efa7011260bebe7366fabcb610ab4 (diff)
Update popup scan ignore selectors
-rw-r--r--ext/bg/js/search-frontend.js2
-rw-r--r--ext/fg/js/popup-nested.js2
-rw-r--r--ext/mixed/display-templates.html4
3 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/search-frontend.js b/ext/bg/js/search-frontend.js
index bd2ddb50..e453ccef 100644
--- a/ext/bg/js/search-frontend.js
+++ b/ext/bg/js/search-frontend.js
@@ -27,7 +27,7 @@ async function searchFrontendSetup() {
const ignoreNodes = ['.scan-disable', '.scan-disable *'];
if (!options.scanning.enableOnPopupExpressions) {
- ignoreNodes.push('.term-expression-text', '.term-expression-text *');
+ ignoreNodes.push('.source-text', '.source-text *');
}
window.frontendInitializationData = {depth: 1, ignoreNodes, proxy: false};
diff --git a/ext/fg/js/popup-nested.js b/ext/fg/js/popup-nested.js
index e0e52cb7..3f3c945e 100644
--- a/ext/fg/js/popup-nested.js
+++ b/ext/fg/js/popup-nested.js
@@ -35,7 +35,7 @@ async function popupNestedInitialize(id, depth, parentFrameId, url) {
const ignoreNodes = ['.scan-disable', '.scan-disable *'];
if (!options.scanning.enableOnPopupExpressions) {
- ignoreNodes.push('.term-expression-text', '.term-expression-text *');
+ ignoreNodes.push('.source-text', '.source-text *');
}
window.frontendInitializationData = {id, depth, parentFrameId, ignoreNodes, url, proxy: true};
diff --git a/ext/mixed/display-templates.html b/ext/mixed/display-templates.html
index 01cfeffc..62f3c69c 100644
--- a/ext/mixed/display-templates.html
+++ b/ext/mixed/display-templates.html
@@ -20,7 +20,7 @@
<div class="term-definition-container"><ol class="term-definition-list"></ol></div>
<pre class="debug-info"></pre>
</div></template>
-<template id="term-expression-template"><div class="term-expression"><span class="term-expression-text"></span><div class="term-expression-details">
+<template id="term-expression-template"><div class="term-expression"><span class="term-expression-text source-text"></span><div class="term-expression-details">
<button class="action-button action-play-audio"><img src="/mixed/img/play-audio.svg" class="icon-image" title="Play audio" alt></button>
<div class="tags tag-list"></div>
<div class="frequencies tag-list"></div>
@@ -43,7 +43,7 @@
<button class="action-button action-add-note pending disabled" data-mode="kanji"><img src="/mixed/img/add-term-kanji.svg" class="icon-image" title="Add Kanji (Alt + K)" alt></button>
<span class="action-button action-current-indicator"><img src="/mixed/img/entry-current.svg" class="icon-image current" title="Current entry (Alt + Up/Down/Home/End/PgUp/PgDn)" alt></span>
</div>
- <div class="kanji-glyph"></div>
+ <div class="kanji-glyph source-text"></div>
</div>
</div>
<div class="frequencies"></div>