#你的工作会被ChatGPT取代吗#
几行代码让你的ChatGPT keepalive:(function () {
'use strict';

setInterval(function () {
// input a question into the chat box
const textarea = document.querySelector("textarea");

textarea.value =Math.random()>=0.5? "继续":Math.random()+"这个数有什么历史典故";
textarea.dispatchEvent(new KeyboardEvent("keydown", {
bubbles: true,
cancelable: true,
key: "Enter",
code: "Enter",
keyCode: 13
}));
}, 60000+Math.random()*10000);
})();
展开
评论