quora original answers only

quora default original answers only

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         quora original answers only
// @namespace    http://tampermonkey.net/
// @version      0.5
// @description  quora default original answers only
// @author       ClaoDD
// @match        https://www.quora.com/*
// @grant        none
// ==/UserScript==

function clickLinks() {
  const links = Array.from(document.querySelectorAll('.qu-ellipsis, .qu-tapHighlight--white, .qu-dynamicFontSize--small'));

  // Clicca su "Recommended" inizialmente
  const recommendedLink = links.find(link => link.textContent === 'Recommended');
  if (recommendedLink) {
    recommendedLink.click();
  }

  // Dopo 1 secondo, clicca su "Recent"
  setTimeout(() => {
    const links2 = Array.from(document.querySelectorAll('.qu-ellipsis, .qu-tapHighlight--white, .qu-dynamicFontSize--small'));
    const recentLink = links2.find(link => link.textContent === 'Recent');
    if (recentLink) {
      recentLink.click();
    }
  }, 1650);
}

// Chiamare la funzione clickLinks all'avvio della pagina
clickLinks();