Rainbrid

Eric Chizzle

As of 2016-10-08. See the latest version.

// ==UserScript==
// @name       Rainbrid
// @version    1.0
// @author	   jawz
// @description  Eric Chizzle
// @match      https://www.gethybrid.io/workers/tasks/*
// @require     http://code.jquery.com/jquery-latest.min.js
// @namespace https://greasyforks.org/users/1997
// ==/UserScript==

var colors = ['#ffb3b3', '#c6ffb3', '#ecffb3', '#f2ccff', '#ccffff',
              '#ffe6cc', '#fca4da', '#adccff', '#ade1ff', '#adffd7',
              '#d3ffad', '#edffad', '#fff4ad', '#ffcfad', '#c3adff',
              '#e3adff', '#ffadfc', '#ffadd0', '#ffb3b3', '#c8ffad',
              '#dfffad', '#adffbc'];
var colorCount = colors.length;
var div = $('div[class^="item-response order-"]');



$.each(div,function(index,elem){
    var pick = Math.floor((Math.random() * colorCount));
    div.eq(index)[0].style.backgroundColor = colors[pick];
});
长期地址
遇到问题?请前往 GitHub 提 Issues。