always disable scanning IME checkbox label
This commit is contained in:
parent
cf0bb0a9e2
commit
40c8268fd6
@ -25,7 +25,10 @@ async function searchFrontendSetup() {
|
||||
const options = await apiOptionsGet(optionsContext);
|
||||
if (!options.scanning.enableOnSearchPage) { return; }
|
||||
|
||||
const ignoreNodes = options.scanning.enableOnPopupExpressions ? [] : ['.expression-scan-toggle', '.expression-scan-toggle *'];
|
||||
const ignoreNodes = ['.scan-disable', '.scan-disable *'];
|
||||
if (!options.scanning.enableOnPopupExpressions) {
|
||||
ignoreNodes.push('.expression-scan-toggle', '.expression-scan-toggle *');
|
||||
}
|
||||
|
||||
window.frontendInitializationData = {depth: 1, ignoreNodes, proxy: false};
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
<div class="input-group" style="padding-top: 10px; font-size: 20px; user-select: none;">
|
||||
<span title="Enable kana input method" class="input-group-text">
|
||||
<label>
|
||||
<label class="scan-disable">
|
||||
あ
|
||||
<input type="checkbox" id="wanakana-enable" />
|
||||
</label>
|
||||
|
@ -33,7 +33,10 @@ async function popupNestedInitialize(id, depth, parentFrameId, url) {
|
||||
return;
|
||||
}
|
||||
|
||||
const ignoreNodes = options.scanning.enableOnPopupExpressions ? [] : ['.expression-scan-toggle', '.expression-scan-toggle *'];
|
||||
const ignoreNodes = ['.scan-disable', '.scan-disable *'];
|
||||
if (!options.scanning.enableOnPopupExpressions) {
|
||||
ignoreNodes.push('.expression-scan-toggle', '.expression-scan-toggle *');
|
||||
}
|
||||
|
||||
window.frontendInitializationData = {id, depth, parentFrameId, ignoreNodes, url, proxy: true};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user