Fixes CC bug in the unreleased escalation feature
diff --git a/console_inject.js b/console_inject.js
index 5b772ed..62dcf57 100644
--- a/console_inject.js
+++ b/console_inject.js
@@ -90,6 +90,11 @@
modal.querySelector("#infinitegforums_duplicate").addEventListener("click", duplicateThreads);
});
}
+
+ if (options.escalatethreads && ("tagName" in node) && node.tagName == "A" && node.getAttribute("href") !== null && /^\/forum\/[0-9]+\/thread\/[0-9]+$/i.test(node.getAttribute("href"))) {
+ var escalation = parseUrl(node.getAttribute("href"));
+ node.setAttribute("href", "/s/community/forum/"+escalation.forum+"/thread/"+escalation.thread);
+ }
}
});
}