Abdur-rahmaanJ / Abdur-rahmaanJ/graphColourChange
CSS styles outdated, new selectors needed
- Linguagem predominante
- JavaScript
- Estrelas
- 4
- Forks
- 1
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
`// ==UserScript==
// @name graphColour
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://github.com/*
// @grant none
// ==/UserScript==
// target element : ContributionCalendar-day
// attribute to change: fill
var elem = document.getElementsByClassName("ContributionCalendar-day");
var LEVEL4 = '#216e39';
var LEVEL3 = '#30a14e';
var LEVEL2 = '#40c463';
var LEVEL1 = '#9be9a8';
var LEVEL0 = '#ebedf0';
(function() {
'use strict';
// Your code here...
for(var i=0; i=18){
currElem.style.fill = LEVEL4;
}else if (count>=11){
currElem.style.fill = LEVEL3;
}else if (count>=5){
currElem.style.fill = LEVEL2;
}else if (count>=1){
currElem.style.fill = LEVEL1;
}else if (count<1) {
currElem.style.fill = LEVEL0;
}
}
for(var x=0; x
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Start from the userscript included in the issue and inspect the current GitHub contribution calendar markup against its `ContributionCalendar-day` selector and `data-count`/`data-level` attributes. Update the selector or attribute references as needed, then install or run the script in GitHub and verify that contribution cells receive the intended fill colors.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- github, javascript
- Domínio
- frontend
- Tipo de issue
- Bug
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 30/100