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 :)

답글 게시

답글을 게시하려면 로그인하세요.