Added features to automatically load all messages in a thread and enable the enableLoadingDraftMessages flag
diff --git a/console_inject.js b/console_inject.js
index 0f77085..7c0d339 100644
--- a/console_inject.js
+++ b/console_inject.js
@@ -13,6 +13,10 @@
intersectionObserver.observe(node.querySelector(".load-more-button"));
}
+ if (options.threadall && node.classList.contains("load-more-bar")) {
+ intersectionObserver.observe(node.querySelector(".load-all-button"));
+ }
+
if (options.history && ("parentNode" in node) && node.parentNode !== null && ("tagName" in node.parentNode) && node.parentNode.tagName == "EC-USER") {
var nameElement = node.querySelector(".name span");
if (nameElement !== null) {