ChatGPT Continue Button

Makes the send button type continue and submit it if there is nothing in the textarea

< 脚本ChatGPT Continue Button的反馈

提问/评论

§
发表于:2023-06-10

//----------------------NEW CODE-------------------
//WRITTEN BY CHATGPT AFTER ANALYZING THE SOURCE CODE

(function() {
'use strict';

// Find the textarea element
const textarea = document.querySelector('textarea');

// Create the 'continue' button
const continueButton = document.createElement('button');
continueButton.textContent = 'Continue';
continueButton.style.marginLeft = '10px';

// Add an event listener to the 'continue' button
continueButton.addEventListener('click', function() {
// Type "Continue" in the textarea
textarea.value = 'Continue';

// Trigger the input event to make the textarea send the message
const inputEvent = new Event('input', { bubbles: true });
textarea.dispatchEvent(inputEvent);
});

// Insert the 'continue' button next to the textarea
textarea.parentNode.insertBefore(continueButton, textarea.nextSibling);
})();

发表回复

登录(不可用)以发表回复。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址