Mantis bug coloring for Bugzilla

Makes any Bugzilla-based bugtracker bearable to use

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Mantis bug coloring for Bugzilla
// @author      Swyter
// @description Makes any Bugzilla-based bugtracker bearable to use
// @namespace   userscripts.org/user/swyter
// @include     *://bugzilla.*/buglist.cgi*
// @version     2019.02.09
// @grant       GM_addStyle
// @run-at      document-start
// ==/UserScript==

GM_addStyle
(`
  .bz_NEW              { background-color: #fcbdbd; } /* swy: i.e. new              */
  .bz_FEEDBACK         { background-color: #e3b7eb; } /* swy: i.e. feedback         */
  .bz_RELEASED_TO_TEST { background-color: #ffcd85; } /* swy: i.e. released to test */
  .bz_CONFIRMED        { background-color: #fff494; } /* swy: i.e. confirmed        */
  .bz_ASSIGNED         { background-color: #c2dfff; } /* swy: i.e. assigned         */
  .bz_RESOLVED         { background-color: #d2f5b0; } /* swy: i.e. resolved         */
  .bz_CLOSED           { background-color: #c9ccc4; } /* swy: i.e. closed           */
`);