ChatGPT+ Keep Running "Continue generating" GPT-4 new feature

Big Update! Both auto continue,and can customize click and regenerating by your demamd!

  1. // ==UserScript==
  2. // @name ChatGPT+ Keep Running "Continue generating" GPT-4 new feature
  3. // @namespace https://github.com/new4u
  4. // @version 3.1.317
  5. // @description Big Update! Both auto continue,and can customize click and regenerating by your demamd!
  6. // @author new4u本爷有空
  7. // @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com
  8. // @match https://chat.openai.com/chat
  9. // @connect chat.openai.com
  10. // @match https://chat.openai.com/*
  11. // @grant none
  12. // @copyright 2015-2023, new4u
  13. // @license GPL-3.0-only
  14. // ==/UserScript==
  15.  
  16. (function() {
  17. 'use strict';
  18. var count=0;
  19. // 创建 auto regenerate按钮
  20. var autoRegenBtn = document.createElement("button");
  21. autoRegenBtn.innerHTML = "Auto Regenerate";
  22. autoRegenBtn.style.position = "fixed";
  23. autoRegenBtn.style.bottom = "20px"; // 将按钮放在输入框下方
  24. autoRegenBtn.style.right = "20px";
  25. document.body.appendChild(autoRegenBtn);
  26. var autoRegenerate = false;
  27. // 添加点击事件
  28. autoRegenBtn.addEventListener('click', function() {
  29. autoRegenerate = !autoRegenerate; // 切换 auto regenerate 状态
  30. autoRegenBtn.style.backgroundColor = autoRegenerate ? 'green' : 'red'; // 改变按钮颜色
  31. autoRegenBtn.innerHTML = autoRegenerate ? 'Auto Regenerate: ON' : 'Auto Regenerate: OFF'; // 改变按钮文字显示
  32. });
  33. setInterval(() => {
  34. const buttons = document.querySelectorAll('button');
  35. let found = false;
  36. buttons.forEach(button => {
  37. if (autoRegenerate && button.textContent === 'Regenerate response') {
  38. button.click();
  39. count++;
  40. console.log('Clicked button with text: Regenerate response次数',count);
  41. found = true;
  42. } else if (button.textContent === 'Continue generating') {
  43. button.click();
  44. var d = new Date();
  45. var n = d.getHours();
  46. var counttime = new Array();
  47. counttime[n] = count;
  48. counttime[n+1] = 0;
  49. console.log('Clicked button with text: Continue generating次数+时长',counttime[n],n);
  50. found = true;
  51. }
  52. });
  53. if (!found) {
  54. console.log('Button with text not found');
  55. }
  56. }, 15000);
  57. })();

QingJ © 2025

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