Skip to content

Commit

Permalink
Moved chatgptJSver into app + added app.version ↞ [auto-sync from
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Dec 1, 2024
1 parent c178f52 commit adc1ee2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions chatgpt/amazongpt/amazongpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @description Adds the magic of AI to Amazon shopping
// @author KudoAI
// @namespace https://kudoai.com
// @version 2024.11.29.2
// @version 2024.12.1
// @license MIT
// @icon https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon48.png?v=0fddfc7
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon64.png?v=0fddfc7
Expand Down Expand Up @@ -111,7 +111,8 @@

// Init APP data
const app = {
name: 'AmazonGPT', symbol: '🤖', configKeyPrefix: 'amazonGPT',
name: 'AmazonGPT', version: GM_info.script.version, symbol: '🤖', configKeyPrefix: 'amazonGPT',
chatgptJSver: /chatgpt\.js@([\d.]+)/.exec(GM_info.script.header)[1],
urls: {
app: 'https://amazongpt.kudoai.com',
chatgptJS: 'https://chatgpt.js.org',
Expand Down Expand Up @@ -760,12 +761,11 @@
log.debug('Showing About modal...')

// Create/init modal
const chatgptJSver = (/chatgpt-([\d.]+)\.min/.exec(GM_info.script.header) || [null, ''])[1]
const aboutModal = siteAlert('',
`🏷️ ${app.msgs.about_version}: <span class="about-em">${GM_info.script.version}</span>\n`
`🏷️ ${app.msgs.about_version}: <span class="about-em">${app.version}</span>\n`
+ '⚡ ' + ( app.msgs.about_poweredBy ) + ': '
+ `<a href="${app.urls.chatgptJS}" target="_blank" rel="noopener">chatgpt.js</a>`
+ ( chatgptJSver ? ( ' v' + chatgptJSver ) : '' ) + '\n'
+ ` v${app.chatgptJSver}\n`
+ '📜 ' + ( app.msgs.about_sourceCode )
+ `: <a href="${app.urls.gitHub}" target="_blank" rel="nopener">`
+ app.urls.gitHub + '</a>',
Expand Down

0 comments on commit adc1ee2

Please sign in to comment.