MCPcopy Create free account
hub / github.com/ChinaGodMan/UserScripts / applyStyles

Function applyStyles

chatgpt-plus/chatgpt-plus.user.js:105–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 min-w-fit>div{max-width:100%!important}
104 }`
105 function applyStyles() {
106 if (typeof GM_addStyle !== 'undefined') {
107 GM_addStyle(css)
108 } else {
109 let styleNode = document.createElement('style')
110 styleNode.appendChild(document.createTextNode(css));
111 (document.querySelector('head') || document.documentElement).appendChild(styleNode)
112 }
113 }
114 applyStyles()
115 setInterval(() => {
116 const styles = document.querySelectorAll('style')

Callers 1

addMaxWidthCSSFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected