this is claude's shim that presently lets https://github.com/Laumss/loominary (watch out strong spiritual chinese pro-ai-seeming marketing on their website, for me i had to back off i'm not sure what the intent is) run in the dev console of public computers for me, allowing logging of chatgpt and claude that presently was quite challenging (mostly due to trying to build any solution myself sending me into spasms and confusions) // Minimal shims so a GM_-based userscript survives a raw console paste. // Only covers the calls Loominary made; add more if it errors again. window.GM_addStyle = css => { // inject a <style> tag const s = document.createElement('style'); s.textContent = css; document.head.appendChild(s); }; window.GM_setValue = (k, v) => localStorage.setItem('GM_' + k, JSON.stringify(v)); window.GM_getValue = (k, d) => { const v = localStorage.getItem('GM_' + k); return v === null ? d : JSON.parse(v); };