Added features to automatically load all messages in a thread and enable the enableLoadingDraftMessages flag
diff --git a/options.js b/options.js
index 266a28b..026776c 100644
--- a/options.js
+++ b/options.js
@@ -5,9 +5,11 @@
 var defaultOptions = {
   "list": true,
   "thread": true,
+  "threadall": false,
   "fixedtoolbar": false,
   "redirect": false,
-  "history": false
+  "history": false,
+  "loaddrafts": false
 };
 
 function cleanUpOptions(options) {
@@ -39,14 +41,19 @@
 }
 
 function i18n() {
-  var messages = ["list", "thread", "enhancements", "fixedtoolbar", "redirect", "experimental_label", "history", "save"];
+  var messages = ["list", "thread", "threadall", "enhancements", "fixedtoolbar", "redirect", "loaddrafts", "experimental_label", "history", "save"];
 
   messages.forEach(function(msg) {
-    console.log(msg);
-    document.querySelector("[data-i18n=\""+msg+"\"]").innerHTML = chrome.i18n.getMessage("options_"+msg);
+    document.querySelectorAll("[data-i18n=\""+msg+"\"]").forEach(el => el.innerHTML = chrome.i18n.getMessage("options_"+msg));
   });
 }
 
+function thread() {
+  if (document.querySelector("#thread").checked && document.querySelector("#threadall").checked) {
+    document.querySelector("#"+(this.id == "thread" ? "threadall" : "thread")).checked = false;
+  }
+}
+
 window.addEventListener("load", function() {
   i18n();
 
@@ -59,6 +66,7 @@
       }
     });
 
+    ["thread", "threadall"].forEach(el => document.querySelector("#"+el).addEventListener("change", thread));
     document.querySelector("#save").addEventListener("click", save);
   });
 });