MCPcopy
hub / github.com/xcanwin/KeepChatGPT / fixOpenaiBUG

Function fixOpenaiBUG

KeepChatGPT.user.js:2962–2974  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2960 帮助openai官方修复bug:Alpha语言环境存在bug导致无法发送信息
2961 */
2962 const fixOpenaiBUG = function () {
2963 localStorage.removeItem("oai/apps/locale");
2964 if (gv("k_lastjob", "") === "") {
2965 sv("k_lastjob", Date.now().toString() + ",0");
2966 } else {
2967 let d, t;
2968 [d, t] = gv("k_lastjob", "").split(",");
2969 if (Date.now() - parseInt(d) >= 1000 * 60 * 60 * 24 * 7 && t <= 3) {
2970 t = parseInt(t) + 1;
2971 sv("k_lastjob", Date.now().toString() + "," + t);
2972 }
2973 }
2974 };
2975
2976 /*
2977 绕过一部分CF机器人校验

Callers

nothing calls this directly

Calls 2

gvFunction · 0.85
svFunction · 0.85

Tested by

no test coverage detected