Greasy Fork is available in English.
Auto refresh chatGPT session
当前为
// ==UserScript==
// @name Auto Refresh ChatGPT session
// @namespace http://github.com/zhaohongxuan
// @version 0.2
// @description Auto refresh chatGPT session
// @author hank zhao
// @match https://chat.openai.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com
// @grant none
// @license AGPL-3.0-or-later
// ==/UserScript==
(function() {
'use strict';
function refreshPage() {
var xhr = new XMLHttpRequest();
xhr.open('GET', "https://chat.openai.com/api/auth/session");
xhr.send();
console.debug("refresh complete...")
}
setInterval(refreshPage, 59000);
})();