From b889bccbf63456e17a1fc6d00573143f258276c7 Mon Sep 17 00:00:00 2001 From: adamlui Date: Sat, 8 Jun 2024 16:56:08 +0000 Subject: [PATCH] =?UTF-8?q?Renamed=20`alert()`=20to=20`siteAlert()`=20to?= =?UTF-8?q?=20avoid=20potential=20namespace=20conflicts=20=E2=86=9E=20[aut?= =?UTF-8?q?o-sync=20from=20`adamlui/chatgpt-apps/chatgpt-auto-continue`]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chatgpt-auto-continue.user.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/chatgpt/chatgpt-auto-continue/chatgpt-auto-continue.user.js b/chatgpt/chatgpt-auto-continue/chatgpt-auto-continue.user.js index 931edb984..1baed62e1 100644 --- a/chatgpt/chatgpt-auto-continue/chatgpt-auto-continue.user.js +++ b/chatgpt/chatgpt-auto-continue/chatgpt-auto-continue.user.js @@ -219,7 +219,7 @@ // @description:zu ⚡ Terus menghasilkan imibuzo eminingi ye-ChatGPT ngokwesizulu // @author Adam Lui // @namespace https://github.com/adamlui -// @version 2024.6.8.1 +// @version 2024.6.8.2 // @license MIT // @match *://chatgpt.com/* // @match *://chat.openai.com/* @@ -350,7 +350,7 @@ pStyle = 'position: relative ; left: 3px', pBrStyle = 'position: relative ; left: 4px ', aStyle = 'color: ' + ( chatgpt.isDarkMode() ? '#c67afb' : '#8325c4' ) // purple - const aboutModalID = alert( + const aboutModalID = siteAlert( msgs.appName || config.appName, // title `🏷️ ${ msgs.about_version || 'Version' }: ` + `${ GM_info.script.version }\n` @@ -400,7 +400,7 @@ else if (latestSubVer > currentSubVer) { // if outdated // Alert to update - const updateModalID = alert(( msgs.alert_updateAvail || 'Update available' ) + '! 🚀', // title + const updateModalID = siteAlert(( msgs.alert_updateAvail || 'Update available' ) + '! 🚀', // title ( msgs.alert_newerVer || 'An update to' ) + ' ' // msg + ( msgs.appName || config.appName ) + ' ' + `(v${ latestVer }) ${ msgs.alert_isAvail || 'is available' }! ` @@ -426,7 +426,7 @@ }} // Alert to no update, return to About modal - alert(( msgs.alert_upToDate || 'Up-to-date' ) + '!', // title + siteAlert(( msgs.alert_upToDate || 'Up-to-date' ) + '!', // title `${ msgs.appName || 'ChatGPT Auto-Continue' } (v${ currentVer }) ` // msg + ( msgs.alert_isUpToDate || 'is up-to-date' ) + '!', '', '', updateAlertWidth @@ -439,7 +439,7 @@ function notify(msg, position = '', notifDuration = '', shadow = '') { chatgpt.notify(`${ config.appSymbol } ${ msg }`, position, notifDuration, shadow || chatgpt.isDarkMode() ? '' : 'shadow') } - function alert(title = '', msg = '', btns = '', checkbox = '', width = '') { + function siteAlert(title = '', msg = '', btns = '', checkbox = '', width = '') { return chatgpt.alert(`${ config.appSymbol } ${ title }`, msg, btns, checkbox, width )} })()