Skip to content

Commit

Permalink
Eliminated unnecessary reliance on GM_openInTab ↞ [auto-sync from `…
Browse files Browse the repository at this point in the history
…adamlui/chatgpt-apps/autoclear-chatgpt-history`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Aug 7, 2024
1 parent 47d3391 commit df80a6d
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
// @description:zu Ziba itshala lokucabanga okuzoshintshwa ngokuzenzakalelayo uma ukubuka chatgpt.com
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.8.1
// @version 2024.8.7
// @license MIT
// @icon https://media.autoclearchatgpt.com/images/icons/openai/black/icon48.png?a8868ef
// @icon64 https://media.autoclearchatgpt.com/images/icons/openai/black/icon64.png?a8868ef
Expand All @@ -247,7 +247,6 @@
// @grant GM_getValue
// @grant GM_registerMenuCommand
// @grant GM_unregisterMenuCommand
// @grant GM_openInTab
// @grant GM_xmlhttpRequest
// @grant GM.xmlHttpRequest
// @noframes
Expand Down Expand Up @@ -507,9 +506,8 @@
+ config.updateURL.replace(/.*\/(.*)meta\.js/, '$1user.js') + '"'
+ `> ${ msgs.link_viewChanges || 'View changes' }</a>`,
function update() { // button
GM_openInTab(config.updateURL.replace('meta.js', 'user.js') + '?t=' + Date.now(),
{ active: true, insert: true })}, // focus, make adjacent
'', updateAlertWidth
safeWindowOpen(config.updateURL.replace('meta.js', 'user.js') + '?t=' + Date.now())
}, '', updateAlertWidth
)

// Localize button labels if needed
Expand Down

0 comments on commit df80a6d

Please sign in to comment.