From efca37616e6cd709e614c87f0af7a8140c31510b Mon Sep 17 00:00:00 2001 From: kilo Date: Sat, 15 Jul 2017 00:15:37 +0200 Subject: [PATCH] sukebei category support --- public/js/kilo.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/public/js/kilo.js b/public/js/kilo.js index 4c6ad9cb..33c6c3f2 100644 --- a/public/js/kilo.js +++ b/public/js/kilo.js @@ -3,7 +3,7 @@ document.getElementsByClassName("form-torrent-name")[0].onkeyup = function(){ }; document.getElementsByClassName("form-torrent-category")[0].onchange = function(){ - document.getElementsByClassName("table-torrent-category")[0].className = "table-torrent-category nyaa-cat nyaa-cat-" + Categorylist[document.getElementsByClassName("form-torrent-category")[0].selectedIndex]; + document.getElementsByClassName("table-torrent-category")[0].className = Sukebei ? "sukebei" : "nyaa" + "-cat table-torrent-category "+ Sukebei ? "sukebei" : "nyaa" + "-cat-" + Categorylist[Sukebei][document.getElementsByClassName("form-torrent-category")[0].selectedIndex]; }; document.getElementsByClassName("form-torrent-remake")[0].onchange = function(){ @@ -17,7 +17,7 @@ document.getElementsByClassName("form-torrent-hidden")[0].onchange = function(){ }; var CategoryList = [ - 5 + [5 12, 5, 13, @@ -34,5 +34,12 @@ var CategoryList = [ 15, 16, 1, - 2 + 2], + [11, + 12, + 13, + 14, + 15, + 21, + 22] ];