加這段可以監聽「展開」的節點變化
$(document).ready(setObserver);
const MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
function setObserver() {
const observer = new MutationObserver(() => $(".category").remove());
const config = { attributes: true, childList: true, characterData: true };
$(".thread").each(function() {
observer.observe(this, config);
});
}