🏠 返回首頁 

Remove related answers from Quora questions

Removes "Related" answers on Quora questions. Only works in English.

< 脚本Remove related answers from Quora questions的反馈

评价:好评 - 脚本运行良好

§
发表于:2024-06-19
编辑于:2024-06-19

Since Quora added a new way of slipping unrelated answers among the real ones, I added this bit of code to remove those too.

document.querySelectorAll('.spacing_log_originally_answered_banner').forEach((el) => {
Array.from(el.getElementsByTagName("*")).forEach((re) => {
while (re.parentNode) {
re = re.parentNode;
if (re.className.match(/^.+\sdom_annotate_question_answer_item_\d+\s.+$/)) {
re.remove();
}
}
});
});

You can paste this on line 30, just before the ending bracket of the function :)

发表回复

登录以发表回复。