aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-02-08 09:24:14 -0800
committerAlex Yatskov <alex@foosoft.net>2017-02-08 09:24:14 -0800
commitf3fe0994f52067d7c6d1886b02afd8f0a2a15099 (patch)
tree7ed9b1bfbc0d0e9d665f91ae5297614846ebf95e /ext/bg
parentb3487370db3540a8cafa0346eed1e9109abe7682 (diff)
add option to disable imposters, bump version1.0.11
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/options-form.js2
-rw-r--r--ext/bg/js/options.js1
-rw-r--r--ext/bg/options.html4
3 files changed, 7 insertions, 0 deletions
diff --git a/ext/bg/js/options-form.js b/ext/bg/js/options-form.js
index 00b6a63e..4470d105 100644
--- a/ext/bg/js/options-form.js
+++ b/ext/bg/js/options-form.js
@@ -37,6 +37,7 @@ function getFormData() {
optionsNew.scanning.requireShift = $('#hold-shift-to-scan').prop('checked');
optionsNew.scanning.selectText = $('#select-matched-text').prop('checked');
+ optionsNew.scanning.imposter = $('#search-form-text-fields').prop('checked');
optionsNew.scanning.delay = parseInt($('#scan-delay').val(), 10);
optionsNew.scanning.length = parseInt($('#scan-length').val(), 10);
@@ -95,6 +96,7 @@ $(document).ready(() => {
$('#hold-shift-to-scan').prop('checked', options.scanning.requireShift);
$('#select-matched-text').prop('checked', options.scanning.selectText);
+ $('#search-form-text-fields').prop('checked', options.scanning.imposter);
$('#scan-delay').val(options.scanning.delay);
$('#scan-length').val(options.scanning.length);
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index a4e39e41..65712c12 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -31,6 +31,7 @@ function optionsSetDefaults(options) {
scanning: {
requireShift: true,
selectText: true,
+ imposter: true,
delay: 15,
length: 10
},
diff --git a/ext/bg/options.html b/ext/bg/options.html
index d9d23c6a..ebb12f15 100644
--- a/ext/bg/options.html
+++ b/ext/bg/options.html
@@ -62,6 +62,10 @@
<label><input type="checkbox" id="select-matched-text"> Select matched text</label>
</div>
+ <div class="checkbox">
+ <label><input type="checkbox" id="search-form-text-fields"> Search form text fields</label>
+ </div>
+
<div class="form-group options-advanced">
<label for="scan-delay">Scan delay</label>
<input type="number" min="1" id="scan-delay" class="form-control">