Perplexity Auto Skip Pro Search Questions

Automatically clicks the button to skip answering questions when using Perplexity Pro search

// ==UserScript==
// @name         Perplexity Auto Skip Pro Search Questions
// @namespace    https://greasyfork.org/en/users/688917
// @version      0.2
// @description  Automatically clicks the button to skip answering questions when using Perplexity Pro search
// @match        https://www.perplexity.ai/*
// @license      MIT
// @run-at       document-end
// ==/UserScript==

(function() {
    'use strict';

    function clickSkipButton() {
        const skipButtonSelector = '[class*="max-w-threadWidth"] [class*="col-span-8"] > div:nth-child(2) > div > [class*="mt-"][class*="p-"][class*="border"][class*="rounded-lg"][class*="flex"][class*="gap-"][class*="justify-between"][class*="items-center"] > button';
        const skipButton = document.querySelector(skipButtonSelector);

        if (skipButton) {
            skipButton.click();
        }
    }

    function setup() {
        clickSkipButton();
        setInterval(() => {
            clickSkipButton();
        }, 500);
    }

    setup();
})();