Update popup scan ignore selectors

This commit is contained in:
toasted-nutbread 2020-01-16 19:35:19 -05:00
parent 62da7ec5cc
commit f969b5b8a9
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

@ -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>