Skip to content

Commit

Permalink
Removed padding around simple expressions in template literals for re…
Browse files Browse the repository at this point in the history
…adability ↞ [auto-sync from `adamlui/chatgpt-apps`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Sep 24, 2024
1 parent e195845 commit 8ea04e6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions greasemonkey/googlegpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-Google Search (inikwa amandla yi-Google Gemma + GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2024.9.24.2
// @version 2024.9.24.3
// @license MIT
// @icon https://media.googlegpt.io/images/icons/googlegpt/black/icon48.png?8652a6e
// @icon64 https://media.googlegpt.io/images/icons/googlegpt/black/icon64.png?8652a6e
Expand Down Expand Up @@ -858,7 +858,7 @@
// Alert to update
log.debug(`Update v${latestVer} found!`)
const updateModalID = siteAlert(`🚀 ${app.msgs.alert_updateAvail}!`, // title
`${app.msgs.alert_newerVer} ${ app.name } `
`${app.msgs.alert_newerVer} ${app.name} `
+ `(v${latestVer}) ${app.msgs.alert_isAvail}! `
+ '<a target="_blank" rel="noopener" style="font-size: 0.97rem" '
+ 'href="' + app.urls.gitHub + '/commits/main/greasemonkey/'
Expand All @@ -873,7 +873,7 @@
// Localize button labels if needed
if (!config.userLanguage.startsWith('en')) {
log.debug('Localizing button labels in non-English alert...')
const updateAlert = document.querySelector(`[id="${ updateModalID }"]`),
const updateAlert = document.querySelector(`[id="${updateModalID}"]`),
updateBtns = updateAlert.querySelectorAll('button')
updateBtns[1].textContent = app.msgs.btnLabel_update
updateBtns[0].textContent = app.msgs.btnLabel_dismiss
Expand Down Expand Up @@ -1203,7 +1203,7 @@
settings.save('replyLanguage', replyLanguage || config.userLanguage)
log.debug(`Success! config.replyLanguage = ${config.replyLanguage}`)
const langUpdatedAlertID = siteAlert(( app.msgs.alert_langUpdated ) + '!', // title
`${ app.name } ${app.msgs.alert_willReplyIn} `
`${app.name} ${app.msgs.alert_willReplyIn} `
+ ( replyLanguage || app.msgs.alert_yourSysLang ) + '.',
'', '', 330) // confirmation width
const langUpdatedAlert = document.getElementById(langUpdatedAlertID).firstChild
Expand Down Expand Up @@ -1380,7 +1380,7 @@
const knobWidth = 11
const knobStyles = {
position: 'absolute', left: '1px', bottom: '1px',
width: `${ knobWidth }px`, height: `${ knobWidth }px`, content: '""', borderRadius: '28px',
width: `${knobWidth}px`, height: `${knobWidth}px`, content: '""', borderRadius: '28px',
transform: settingToggle.checked ? // init opposite final pos
'translateX(0)' : 'translateX(14px) translateY(0)',
backgroundColor: 'white', '-webkit-transition': '0.2s', transition: '0.2s'
Expand Down Expand Up @@ -1438,7 +1438,7 @@
const innerDiv = document.createElement('div'),
textGap = '&emsp;&emsp;&emsp;&emsp;&emsp;'
modals.settings.aboutContent = {}
modals.settings.aboutContent.short = `v${ GM_info.script.version}`
modals.settings.aboutContent.short = `v${GM_info.script.version}`
modals.settings.aboutContent.long = (
`${app.msgs.about_version}: <span class="about-em">v${ GM_info.script.version + textGap }</span>`
+ `${app.msgs.about_poweredBy} <span class="about-em">chatgpt.js</span>${textGap}` )
Expand Down

0 comments on commit 8ea04e6

Please sign in to comment.