Greasy Fork is available in English.

Remove related answers from Quora questions

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

< Commentaires sur Remove related answers from Quora questions

Avis: Bon - le script fonctionne correctement

§
Posté le: 2024-06-19
Édité le: 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 :)

Poster une réponse

Connectez-vous pour poster une réponse.