Greasy Fork

Greasy Fork is available in English.

Trello coloured Scrum Kanban

Colour list for Scrum, referenced with Kanban Game

当前为 2018-01-08 提交的版本,查看 最新版本

// ==UserScript==
// @name Trello coloured Scrum Kanban
// @namespace https://trello.com/
// @version 1.1
// @description Colour list for Scrum, referenced with Kanban Game
// @match https://trello.com/*
// @require http://code.jquery.com/jquery-latest.js
// @author       Michael Wan
// ==/UserScript==
// Ref: https://stawebteam.wordpress.com/2014/03/07/coloured-lists-in-trello/

$(document).ready(function() {

    var red = '#fccbc2',
        blue = '#9ec4ff',
        green = '#dbffd1',
        grey = '#c4c4c4',
        black = '#898989',
        white = '#fff',
        yellow = '#fcffc4',
        darkred = '#ffa78c',
        lightblue = '#dbf3ff';

    $('body').hover(function() {
        $("h2:contains('Analysis')").css('color', white).parents('.list').css('background', red);
        $("h2:contains('Development')").css('color', white).parents('.list').css('background', blue);
        $("h2:contains('Testing')").css('color', white).parents('.list').css('background', green);
        $("h2:contains('Ready to Deploy')").css('color', white).parents('.list').css('background', grey);
        $("h2:contains('Deployed')").css('color', white).parents('.list').css('background', black);
        $("span:contains('!')").parents('.list-card-details').css('background', yellow);
        $("span:contains('!!')").parents('.list-card-details').css('background', darkred);
        $("span:contains('`')").parents('.list-card-details').css('background', lightblue);
    });
});