-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.user.js
More file actions
27 lines (25 loc) · 835 Bytes
/
script.user.js
File metadata and controls
27 lines (25 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// ==UserScript==
// @name Auto Reload ChatGPT
// @description Force entry into ChatGPT if its capacity is at its limit
// @version 0.8
// @author Mario Paglia
// @updateURL https://github.com/mariopaglia/AutoReloadChatGPT/raw/main/script.user.js
// @downloadURL https://github.com/mariopaglia/AutoReloadChatGPT/raw/main/script.user.js
// @match https://chat.openai.com/auth/login
// @icon https://www.google.com/s2/favicons?sz=64&domain=chat.openai.com
// @grant none
// ==/UserScript==
(function () {
"use strict";
window.addEventListener(
"load",
function () {
document.querySelectorAll("div").forEach((element) => {
if (element.innerHTML === "ChatGPT is at capacity right now") {
location.reload();
}
});
},
false
);
})();