Skip to content

Commit

Permalink
Limited continueObserver to <main> (#10)
Browse files Browse the repository at this point in the history
- Removed `()` around unmodded param of `updateCheck()`'s `GM.xmlHttpRequest({onload})` ↞ [auto-sync from `adamlui/chatgpt-auto-continue`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Nov 3, 2023
1 parent 82ebfe7 commit 32625a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chatgpt/chatgpt-auto-continue/chatgpt-auto-continue.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
// @description:zu ⚡ Terus menghasilkan imibuzo eminingi ye-ChatGPT ngokwesizulu
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2023.10.30
// @version 2023.11.3
// @license MIT
// @match *://chat.openai.com/*
// @icon https://raw.githubusercontent.com/adamlui/userscripts/master/chatgpt/media/icons/openai-favicon48.png
Expand Down Expand Up @@ -302,7 +302,7 @@
if (button.textContent.includes('Continue generating')) {
button.click(); notify(messages.notif_chatAutoContinued, 'bottom-right')
}})}})})
continueObserver.observe(document, { attributes: true, subtree: true })
continueObserver.observe(document.querySelector('main'), { attributes: true, subtree: true })

// Notify of status on load
if (!config.notifHidden) notify(messages.mode_autoContinue + ': ON')
Expand All @@ -320,7 +320,7 @@
GM.xmlHttpRequest({
method: 'GET', url: config.updateURL + '?t=' + Date.now(),
headers: { 'Cache-Control': 'no-cache' },
onload: (response) => {
onload: response => {

// Compare versions
const latestVer = /@version +(.*)/.exec(response.responseText)[1]
Expand Down

0 comments on commit 32625a2

Please sign in to comment.