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

Function applyStyles

chatgpt-code-styling/chatgpt-code-styling.user.js:101–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99 `
100
101 function applyStyles() {
102 let styleNode = document.createElement('style')
103 styleNode.appendChild(document.createTextNode(css));
104 (document.querySelector('head') || document.documentElement).appendChild(styleNode)
105 }
106
107 // 初次应用样式
108 applyStyles()

Callers 1

addCustomCSSFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected