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

Function initializeTable

colorful-table/colorful-table.user.js:152–159  ·  view source on GitHub ↗
(table)

Source from the content-addressed store, hash-verified

150 })
151 }
152 function initializeTable(table) {
153 if (table.hasAttribute('data-gradient-initialized')) return
154 table.setAttribute('data-gradient-initialized', 'true')
155 const columnCount = table.rows[0]?.cells.length || 0
156 for (let col = 0; col < columnCount; col++) {
157 applyGradientToColumn(table, col)
158 }
159 }
160 function initializeTables() {
161 document.querySelectorAll('table:not([data-gradient-initialized])').forEach(initializeTable)
162 }

Callers

nothing calls this directly

Calls 1

applyGradientToColumnFunction · 0.85

Tested by

no test coverage detected