您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A script that makes GPT responses continue.
当前为
// ==UserScript== // @name Continue in-complete GPT responses. // @description A script that makes GPT responses continue. // @version 1.1 // @icon https://www.google.com/favicon.ico // @author blank // @namespace https://google.com // @match https://chat.openai.com/* // @run-at document-start // @license MIT // ==/UserScript== (function() { "use strict"; const log = console.log; // Get the ChatGPT response element. const responseElement = document.querySelector(".chat-gpt-response"); // Check if the response is incomplete. if (responseElement.textContent.endsWith("...")) { // Get the last word in the response. const lastWord = responseElement.textContent.split(" ").pop(); // Generate a continuation for the response. const continuation = GPT.continue(lastWord); // Append the continuation to the response. responseElement.textContent += continuation; // Check if the response is still incomplete. if (responseElement.textContent.endsWith("...")) { // Generate a new continuation for the response. const newContinuation = GPT.continue(continuation); // Append the new continuation to the response. responseElement.textContent += newContinuation; } } })();