Skip to content

Commit

Permalink
Replaced DOM routine on Reply Topic update w/ infinity.restart()
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Nov 22, 2024
1 parent 28a1918 commit 700e67f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions chatgpt-infinity/greasemonkey/chatgpt-infinity.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
// @description:zh-TW 從無所不知的 ChatGPT 生成無窮無盡的答案 (用任何語言!)
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.11.22.5
// @version 2024.11.22.6
// @license MIT
// @match *://chatgpt.com/*
// @match *://chat.openai.com/*
Expand Down Expand Up @@ -433,11 +433,7 @@
: (( app.msgs.alert_onTopicOf ) + ' ' + str_replyTopic ))
+ '!'
)
if (config.infinityMode) { // restart session using new reply topic
if (chatgpt.getStopBtn()) chatgpt.stop()
document.getElementById('infinity-toggle-label').click() // toggle off
setTimeout(() => { document.getElementById('infinity-toggle-label').click() }, 500) // toggle on
}
if (config.infinityMode) infinity.restart({ target: 'new' }) // using new reply topic
}
} else if (key == 'replyInterval') {
while (true) {
Expand Down

0 comments on commit 700e67f

Please sign in to comment.