Abdur-rahmaanJ / Abdur-rahmaanJ/graphColourChange
CSS styles outdated, new selectors needed
- 主要語言
- JavaScript
- 星號
- 4
- 分支
- 1
- PR 合併指標
- 30 天內沒有已合併 PR
描述
`// ==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
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
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.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- github, javascript
- 領域
- frontend
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 30/100