Skip to content

Instantly share code, notes, and snippets.

@JaimeObregon
Created December 29, 2020 18:30
Show Gist options
  • Save JaimeObregon/bd5b27ff917bacca047a6050a653becf to your computer and use it in GitHub Desktop.
Save JaimeObregon/bd5b27ff917bacca047a6050a653becf to your computer and use it in GitHub Desktop.
Script rápido y cutre para jugar con el gráfico de actividad de Github :-)
// Láncese en la consola de depuración, y luego basta con hacer clic
// en los cuadros del gráfico de actividad para colorearlos arbitrariamente.
document.querySelectorAll('rect').forEach(rect => {
rect.addEventListener('click', event => {
event.target.setAttribute('fill', 'var(--color-calendar-graph-day-L4-bg)')
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment