Skip to content

Commit

Permalink
Added auto-reload on update ↞ [auto-sync from `adamlui/ai-web-extensi…
Browse files Browse the repository at this point in the history
…ons`]
  • Loading branch information
kudo-sync-bot committed Oct 20, 2024
1 parent 20a4a6b commit 9fef23a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions greasemonkey/bravegpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2024.10.20
// @version 2024.10.20.1
// @license MIT
// @icon https://media.bravegpt.com/images/icons/bravegpt/icon48.png?0a9e287
// @icon64 https://media.bravegpt.com/images/icons/bravegpt/icon64.png?0a9e287
Expand Down Expand Up @@ -197,6 +197,7 @@
// @grant GM_cookie
// @grant GM_registerMenuCommand
// @grant GM_unregisterMenuCommand
// @grant GM_openInTab
// @grant GM_getResourceText
// @grant GM_xmlhttpRequest
// @grant GM.xmlHttpRequest
Expand Down Expand Up @@ -663,7 +664,9 @@
+ app.urls.update.replace(/.*\/(.*)meta\.js/, '$1user.js') + '"'
+ `>${app.msgs.link_viewChanges}</a>`,
function update() { // button
modals.safeWinOpen(app.urls.update.replace('meta.js', 'user.js') + '?t=' + Date.now())
GM_openInTab(app.urls.update.replace('meta.js', 'user.js') + '?t=' + Date.now(),
{ active: true, insert: true } // focus, make adjacent
).onclose = () => location.reload()
}, '', updateAlertWidth
)
const updateModal = document.getElementById(updateModalID).firstChild
Expand Down

0 comments on commit 9fef23a

Please sign in to comment.