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
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。