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/chatgpt-widescreen/greasemonkey`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Aug 7, 2024
1 parent e4e3c52 commit 47d3391
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions chatgpt/chatgpt-widescreen/chatgpt-widescreen-mode.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
// @description:zu Engeza izinhlobo zezimodi ze-Widescreen + Fullscreen ku-ChatGPT ukuze kube nokubonakala + ukuncitsha ukusukela
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.7.25
// @version 2024.8.7
// @license MIT
// @compatible chrome
// @compatible firefox
Expand All @@ -245,7 +245,6 @@
// @grant GM_getValue
// @grant GM_registerMenuCommand
// @grant GM_unregisterMenuCommand
// @grant GM_openInTab
// @grant GM_xmlhttpRequest
// @grant GM.xmlHttpRequest
// @noframes
Expand Down Expand Up @@ -493,9 +492,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 47d3391

Please sign in to comment.