Highlights torrent list containing some text. Better, faster readability. I use it for video sizes (480p. 720p, 1080p etc). Add any text you want highlighted.
当前为
// ==UserScript==
// @name RARBG Torrents - Color Coded Torrent List
// @namespace rarbgp2p
// @version 0.3
// @description Highlights torrent list containing some text. Better, faster readability. I use it for video sizes (480p. 720p, 1080p etc). Add any text you want highlighted.
// @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
// }
});