Adds Widescreen + Fullscreen modes to ChatGPT for enhanced viewing + reduced scrolling
A continuación se muestran las versiones de este script en las que se actualizó el código. Ver todas las versiones.
Added chatbar.isLoaded() + call before 1st btns.insert() for reliability ↞ [auto-sync from adamlui/chatgpt-apps/chatgpt-widescreen/greasemonkey]
chatbar.isLoaded()
btns.insert()
adamlui/chatgpt-apps/chatgpt-widescreen/greasemonkey
Refined chatbar.tweak() to calc width based on visible btns, added calls where relevant ↞ [auto-sync from adamlui/chatgpt-apps/chatgpt-widescreen/edge]
chatbar.tweak()
adamlui/chatgpt-apps/chatgpt-widescreen/edge
Abstracted chatbar.tweak(), moved call in btns.insert() after insertion to support future .getBoundingClientRect() tweaks ↞ [auto-sync from adamlui/chatgpt-apps/chatgpt-widescreen/chrome]
.getBoundingClientRect()
adamlui/chatgpt-apps/chatgpt-widescreen/chrome
Abstracted chatbar.get(), removed outdated selector ↞ [auto-sync from adamlui/chatgpt-apps/chatgpt-widescreen/greasemonkey]
chatbar.get()
Refined tooltip x-positioning ↞ [auto-sync from adamlui/chatgpt-apps/chatgpt-widescreen/edge]
Replaced direct resize/key listener assignments w/ .addEventListener() to prevent overwriting existing listeners
.addEventListener()
Moved menu objs/functions into menu obj for improved structure ↞ [auto-sync from adamlui/chatgpt-apps/chatgpt-widescreen/greasemonkey]
menu
Renamed btns.setColor() to btns.updateColor() for consistency
btns.setColor()
btns.updateColor()
Moved symbols + deleted whitespace for readability
Replaced btnStyle sheet w/ inline assignment by btns.setColor() for simplicity
btnStyle
Added await footer container load to sites.chatgpt.selectors.chatgpt init
sites.chatgpt.selectors.chatgpt
Shortened Full/Fuller Window method/prop/style/arg names
Moved sync methods into obj for readability
Changed btns.setColor() to directly set btns.color for simplicity
btns.color
Removed outdated selector from btns.setColor()
Removed unneeded Taller Chatbox config check from nodeObserver's handle once routine
nodeObserver
Added chatbar/button check pre-insertion to btns.insert()
Moved buttons init from main routine to btns.insert() for simplicity
Replaced global btnColor w/ btns.color for simplicity
btnColor
Bumped chatgpt.js to 3.3.1 ↞ [auto-sync from adamlui/chatgpt-apps/chatgpt-widescreen/greasemonkey]
Added await Send button load to borrow classes
Removed lingering Full-Window btn tooltip in at least FF
Refined chatgpt.com sidebar observer target/config for improved performance
Added pre-obs elem checks to UI promise racers for faster resolution
Converted sites to prototype-less obj to prevent prototype pollution ↞ [auto-sync from adamlui/chatgpt-apps/chatgpt-widescreen/chrome]
sites
Moved safeWindowOpen() below modal function defs, shortened name ↞ [auto-sync from adamlui/chatgpt-apps/chatgpt-widescreen/greasemonkey]
safeWindowOpen()
Shortened app.urls.update init ↞ [auto-sync from adamlui/chatgpt-apps/chatgpt-widescreen/greasemonkey]
app.urls.update
Shortened env.browser.isFirefox to env.browser.isFF ↞ [auto-sync from adamlui/chatgpt-apps/chatgpt-widescreen/greasemonkey]
env.browser.isFirefox
env.browser.isFF
Shortened env.userscriptManager to env.scriptManager ↞ [auto-sync from adamlui/chatgpt-apps/chatgpt-widescreen/greasemonkey]
env.userscriptManager
env.scriptManager
Merged getUserscriptManager() calls + browser into env for improved structure ↞ [auto-sync from adamlui/chatgpt-apps/chatgpt-widescreen/greasemonkey]
getUserscriptManager()
browser
env
Bumped app.latestAssetCommitHash for smaller messages.json from 97a0e3b
app.latestAssetCommitHash
Wrapped settings methods to align w/ my Chrome extensions for improved readability ↞ [auto-sync from adamlui/chatgpt-apps/chatgpt-widescreen/greasemonkey]
Added string conversion + fallback to Send button class extraction to support older browsers + futureproof vs. UI changes
Added inputArea check to chatgpt.com chatbar tweak routine
inputArea
Refactored update.styles.tweaks() to rely on sites[site].availFeatures
update.styles.tweaks()
sites[site].availFeatures
Moved sites.chatgpt.selectors.footer init after UI promise race to prevent null return
sites.chatgpt.selectors.footer
Refactored registerMenu() to contextually generate entries based on sites[site].availFeatures
registerMenu()
Disabled Full-Window auto-toggle on load if sidebar missing (e.g. chatgpt.com guest mode)
Updated chatgpt.com sidebar selector, removed no-longer needed sidepad selector/style
Abstracted obsConfig from sites.chatgpt.hasSidebar init
obsConfig
sites.chatgpt.hasSidebar
Removed no-longer used `btns.sendIsLoaded()
Improved reliability of sites.chatgpt.hasSidebar init
Added sites[site].availFeatures, utilized in settings load
Moved site props init up for potential early access
Refactored update.style.tweaks() to contextually generate header/footer styles
update.style.tweaks()
Enabled Hidden Header mode for Poe
Abstracted site props for easier maintenance/scaling
Removed no-longer needed Auto-Focus Chatbar mode
Moved extension check up for earlier return if installed
Re-activated Poe chatbar observer but on to avoid Tampermonkey leak
Ver todas las versiones del script.