GPT-4 new feature!Keep ChatGPT Running continue

Keeps ChatGPT responsive by automatically Continue generating every x minutes

2023-06-27 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         GPT-4 new feature!Keep ChatGPT Running continue
// @namespace    https://github.com/new4u
// @version      2.0.117
// @description  Keeps ChatGPT responsive by automatically Continue generating every x minutes
// @author       new4u本爷有空
// @icon         https://www.google.com/s2/favicons?sz=64&domain=openai.com
// @match        https://chat.openai.com/chat
// @connect      chat.openai.com
// @match        https://chat.openai.com/*
// @grant        none
// @copyright    2015-2023, new4u
// @license      GPL-3.0-only
// ==/UserScript==

(function() {
  'use strict';
  var count=0


  setInterval(() => {
      // const buttons = document.querySelectorAll('button[class*="btn relative btn-neutral border-0 md:border"]');
      const buttons = document.querySelectorAll('button');

      let found = false;

      buttons.forEach(button => {
          if (button.textContent === 'Continue generating') {
              button.click();

              count++;
// 将count、小时、上下两次count的时间差,存到变量countHour中
              var d = new Date();
              var n = d.getHours();
              //utc时间
              var utc = d.getTime() + (d.getTimezoneOffset() * 60000);
              //分别存在counttime[]中,以小时为index,值是count

              var counttime = new Array();
              counttime[n] = count;
              //每一个n+1,count归零
              counttime[n+1] = 0;
              // console.log(counttime[n]);
              // console.log(counttime[n+1]);

              // console.log(counttime[count]);
              // console.log(counttime[count-1]);
              // console.log(counttime[count]-counttime[count-1]);
              // console.log(counttime[count]-counttime[count-1]/3600000);
              console.log('Clicked button with text: Continue generating次数+时长',counttime[n],n);
              found = true;
          }
      });

      if (!found) {
          console.log('Button with text: Continue generating not found');
      }

  }, 1500);
})();