From 9fef23a67cfb137b8260c54c659381b5192533fb Mon Sep 17 00:00:00 2001 From: kudo-sync-bot Date: Sun, 20 Oct 2024 06:41:54 -0700 Subject: [PATCH] =?UTF-8?q?Added=20auto-reload=20on=20update=20=E2=86=9E?= =?UTF-8?q?=20[auto-sync=20from=20`adamlui/ai-web-extensions`]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- greasemonkey/bravegpt.user.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/greasemonkey/bravegpt.user.js b/greasemonkey/bravegpt.user.js index 6ea325be..035c8dd9 100644 --- a/greasemonkey/bravegpt.user.js +++ b/greasemonkey/bravegpt.user.js @@ -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 @@ -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 @@ -663,7 +664,9 @@ + app.urls.update.replace(/.*\/(.*)meta\.js/, '$1user.js') + '"' + `>${app.msgs.link_viewChanges}`, 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