[udit] chatgpt continue generating button automatic press

Automatically presses "continue generating" button in ChatGPT every 5 seconds.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         [udit] chatgpt continue generating button automatic press
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Automatically presses "continue generating" button in ChatGPT every 5 seconds.
// @author       You
// @match        https://chat.openai.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==

function clickContinueGeneratingButton() {
    var buttons = document.getElementsByTagName('button');
    for (var i = 0; i < buttons.length; i++) {
        var buttonText = buttons[i].textContent.trim();
        if (buttonText === 'Continue generating') {
            buttons[i].click();
            break;
        }
    }
}

window.addEventListener('load', function() {
    setInterval(clickContinueGeneratingButton, 5000); // Executes every 5 seconds (5000 milliseconds)
}, false);