btn torrent background colour alternator

makes btn easier to see

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        btn torrent background colour alternator
// @namespace   enforcer
// @include     http*://broadcasthe.net/torrents.php?*id=*
// @version     1
// @grant       none
// @description makes btn easier to see
// ==/UserScript==

//change your colour here, get hex codes from http://www.colorpicker.com/
var bgcol = "#272A2E" 

var gt = document.querySelectorAll(".group_torrent")

for(i = 0; i < gt.length; i += 2) {
	gt[i].className += " mod2";
	gt[i].parentNode.rows[ gt[i].rowIndex + 1 ].className += " mod2";
	}
		
var css = document.createElement("style");
css.type = "text/css";
css.innerHTML = ".mod2 { background-color: "+ bgcol + " !important }";
document.head.appendChild(css);