Version 0.0.1
diff --git a/console_inject.js b/console_inject.js
new file mode 100644
index 0000000..5edc954
--- /dev/null
+++ b/console_inject.js
@@ -0,0 +1,36 @@
+function mutationCallback(mutationList, observer) {
+ mutationList.forEach((mutation) => {
+ if (mutation.type == "childList") {
+ mutation.addedNodes.forEach(function (node) {
+ if ((typeof node.classList !== "undefined") && node.classList.contains("view-more-button-container")) {
+ intersectionObserver.observe(node.querySelector(".view-more-button"));
+ }
+ });
+ }
+ });
+}
+
+function intersectionCallback(entries, observer) {
+ entries.forEach(entry => {
+ if (entry.isIntersecting) {
+ entry.target.click();
+ }
+ });
+};
+
+var observerOptions = {
+ childList: true,
+ attributes: true,
+ subtree: true
+}
+
+var mutationObserver = new MutationObserver(mutationCallback);
+mutationObserver.observe(document.querySelector(".scrollable-content"), observerOptions);
+
+var intersectionOptions = {
+ root: document.querySelector('.scrollable-content'),
+ rootMargin: '0px',
+ threshold: 1.0
+}
+
+var intersectionObserver = new IntersectionObserver(intersectionCallback, intersectionOptions);
\ No newline at end of file