diff --git a/greasemonkey/chatgpt-widescreen-mode.user.js b/greasemonkey/chatgpt-widescreen-mode.user.js index 67580d5a..270f5de1 100644 --- a/greasemonkey/chatgpt-widescreen-mode.user.js +++ b/greasemonkey/chatgpt-widescreen-mode.user.js @@ -222,7 +222,7 @@ // @description:zu Yengeza Isikrini Esibanzi + Izindlela Zesikrini Esigcwele ku-chatgpt.com + perplexity.ai + poe.com ukuze uthole ukubuka okuthuthukisiwe + okuncishisiwe ukuskrola // @author Adam Lui // @namespace https://github.com/adamlui -// @version 2024.12.1.1 +// @version 2024.12.1.2 // @license MIT // @compatible chrome // @compatible firefox @@ -282,7 +282,10 @@ const xhr = env.scriptManager.name == 'OrangeMonkey' ? GM_xmlhttpRequest : GM.xmlHttpRequest // Init APP data - const app = { configKeyPrefix: `${env.site} Widescreen`, latestAssetCommitHash: '861a313', urls: {} } + const app = { + version: GM_info.script.version, configKeyPrefix: `${env.site} Widescreen`, + chatgptJSver: /chatgpt\.js@([\d.]+)/.exec(GM_info.script.header)[1], urls: {}, latestAssetCommitHash: '861a313' + } app.urls.assetHost = `https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@${app.latestAssetCommitHash}` const appData = await new Promise(resolve => xhr({ method: 'GET', url: `${app.urls.assetHost}/data/app.json`, @@ -566,20 +569,21 @@ show() { modals.stack.unshift('about') ; modals.stack = [...new Set(modals.stack)] // track for nav - // Show alert - const chatgptJSver = (/chatgpt-([\d.]+)\.min/.exec(GM_info.script.header) || [null, ''])[1], - headingStyle = 'font-size: 1.15rem', + // Init styles + const headingStyle = 'font-size: 1.15rem', pStyle = 'position: relative ; left: 3px', pBrStyle = 'position: relative ; left: 4px ', aStyle = 'color: ' + ( chatgpt.isDarkMode() ? '#c67afb' : '#8325c4' ) // purple + + // Show modal const aboutModal = siteAlert( `${app.symbol} ${app.msgs.appName}`, // title `🏷️ ${app.msgs.about_version}: ` - + `${GM_info.script.version}\n` + + `${app.version}\n` + `${app.msgs.about_poweredBy}: ` + `` + `` - + 'chatgpt.js' + ( chatgptJSver ? ( ' v' + chatgptJSver ) : '' ) + '\n' + + `chatgpt.js v${app.chatgptJSver}\n` + `📜 ${app.msgs.about_sourceCode}:\n` + `` + app.urls.gitHub + '',