Skip to content

Commit

Permalink
Disabled unneeded update.bylineVisibility() on phones ↞ [auto-sync …
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Jan 4, 2025
1 parent 1e36aaa commit 60c950a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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 2025.1.4.11
// @version 2025.1.4.12
// @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 @@ -231,6 +231,7 @@
['Chrome', 'Firefox', 'Edge', 'Brave', 'Mobile'].forEach(platform =>
env.browser[`is${ platform == 'Firefox' ? 'FF' : platform }`] = chatgpt.browser['is' + platform]())
env.browser.isPortrait = env.browser.isMobile && (window.innerWidth < window.innerHeight)
env.browser.isPhone = env.browser.isMobile && window.innerWidth <= 480
env.userLocale = env.browser.language.includes('-') ? env.browser.language.split('-')[1].toLowerCase() : ''
env.scriptManager.supportsTooltips = env.scriptManager.name == 'Tampermonkey'
&& parseInt(env.scriptManager.version.split('.')[0]) >= 5
Expand Down Expand Up @@ -2363,6 +2364,7 @@
},

bylineVisibility() {
if (env.browser.isPhone) return // since byline hidden by app.styles
const headerElems = {
btns: appDiv.querySelectorAll('[id$=-header-btns] > btn'),
byline: appDiv.querySelector('.kudoai'),
Expand Down

0 comments on commit 60c950a

Please sign in to comment.