RARBBG - Color Code by Video Size (or by something else)

Highlights torrent list by containging some text for better quicker readability. I use it for video sizes (480p. 720p, 1080p etc). Add any text you want highlighted. Check if rargp2p.org address checks out in case it changed again.

Ajankohdalta 5.10.2020. Katso uusin versio.

// ==UserScript==
// @name         RARBBG - Color Code by Video Size (or by something else)
// @namespace    rarbgp2p
// @version      0.1
// @description  Highlights torrent list by containging some text for better quicker readability. I use it for video sizes (480p. 720p, 1080p etc). Add any text you want highlighted. Check if rargp2p.org address checks out in case it changed again.
// @author       miwoj
// @match        https://rarbgp2p.org/torrents.php*
// @grant        none
// ==/UserScript==

"use strict";

$(".lista a[title]").each(function()
{
    if (/(1080)/i.test($(this).text())) {
        $(this).closest("tr").css({ background: "#ded2fa" }); //violet
    }
    else if (/(2160)/i.test($(this).text())) {
        $(this).closest("tr").css({ background: "#e8d0d7" }); //red
    }
    else if (/(2160)/i.test($(this).text())) {
        $(this).closest("tr").css({ background: "#e8d0d7" }); //red
    }
    else if (/(720)/i.test($(this).text())) {
        $(this).closest("tr").css({ background: "#eceed6" });  //yellow
    }
    else if (/(480|.SD.)/i.test($(this).text())) {
        $(this).closest("tr").css({ background: "#c0edc8" });  //green
    }

//ADD MORE WORDS HERE
//template for adding  more keywords:


//    else if (/(KEYWORD)/i.test($(this).text())) {
//        $(this).closest("tr").css({ background: "COLOR" });  //green
//    }






});