// ==UserScript== // @name Bloom++ // @namespace https://github.com/0-V-linuxdo/Bloom // @version 2.0.44 // @description Void++-style plugin host for chatgpt.com. Tab favicon, input history, recent chats, reply notify, next-prompt queue, Recents status, wider thread, thread outline, message times, streamer blur, custom home greeting, custom sidebar identity, hide Share, Dictation, sidebar name, Download apps, upgrade CTAs, and ads. // @author 0-V-linuxdo & Bloom contributors // @homepageURL https://github.com/0-V-linuxdo/Bloom // @supportURL https://github.com/0-V-linuxdo/Bloom/issues // @icon https://raw.githubusercontent.com/0-V-linuxdo/Bloom/refs/heads/v2/assets/logos/app-icon/bloom-icon.svg // @icon64 https://raw.githubusercontent.com/0-V-linuxdo/Bloom/refs/heads/v2/assets/logos/app-icon/bloom-icon-64.png // @match https://chatgpt.com/* // @match https://*.chatgpt.com/* // @match https://chat.openai.com/* // @match https://free.share-ai.top/* // @match https://chatgpt.aicnm.cc/* // @run-at document-start // @grant GM_getValue // @grant GM_setValue // @grant GM_addValueChangeListener // @grant GM_setClipboard // @grant GM_registerMenuCommand // @grant GM_notification // @grant GM_xmlhttpRequest // @grant unsafeWindow // @connect * // @compatible chrome // @compatible firefox // @compatible edge // @license GPL-3.0-or-later // @downloadURL https://raw.githubusercontent.com/0-V-linuxdo/Bloom/refs/heads/v2/userscript/Bloom.update5.user.js // @updateURL https://raw.githubusercontent.com/0-V-linuxdo/Bloom/refs/heads/v2/userscript/Bloom.update5.user.js // ==/UserScript== /* Bloom++ v2.0.44. SPDX-License-Identifier: GPL-3.0-or-later */ "use strict";(()=>{var ws=Object.defineProperty;var xs=(e,t)=>{for(var o in t)ws(e,o,{get:t[o],enumerable:!0})};var v=class{constructor(t){this.tag=t}log(t,o){console[t](`[Bloom++] [${this.tag}]`,...o)}debug(...t){this.log("debug",t)}info(...t){this.log("info",t)}warn(...t){this.log("warn",t)}error(...t){this.log("error",t)}};var ae=(e,t,o)=>Math.min(o,Math.max(t,e)),S=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),ir=e=>`${e}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,se=(e,t)=>e.length>t?`${e.slice(0,t-1)}\u2026`:e,R=e=>e.replaceAll(/[​-‍]/g,"").replaceAll(/\s+/g," ").trim();function kt(e,t){return`${e} ${t}${e===1?"":"s"}`}async function ar(e){if(typeof GM_setClipboard=="function"){GM_setClipboard(e,"text");return}await navigator.clipboard.writeText(e)}function ge(e){try{return JSON.parse(e)}catch{return}}var J=typeof unsafeWindow>"u"?window:unsafeWindow;var rr={};xs(rr,{VERSION:()=>vs,init:()=>nr,plugins:()=>Ae});var Es=new v("Styles"),Ze=new Map,sr=new Set,Xe=new Map,jo=!0;function lr(){let e=document.adoptedStyleSheets.filter(t=>!sr.has(t));document.adoptedStyleSheets=[...e,...Ze.values()]}function cr(e){document.readyState==="loading"||e.parentNode===document.head||document.head.append(e)}function Cs(e,t){let o=Xe.get(e);o||(o=document.createElement("style"),o.id=`bloom-style-${e}`,Xe.set(e,o)),o.textContent!==t&&(o.textContent=t),cr(o)}function Rt(e,t){if(jo)try{let o=Ze.get(e);o||(o=new J.CSSStyleSheet,Ze.set(e,o),sr.add(o)),o.replaceSync(t),lr();return}catch(o){Es.warn("Constructed style sheets unavailable, using