Filter Uploads by UL Status

Filter uploads by the uploader's status (Uploader, Verified Uploader, Elite Uploader)

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Filter Uploads by UL Status
// @namespace    pxgamer
// @version      0.2
// @description  Filter uploads by the uploader's status (Uploader, Verified Uploader, Elite Uploader)
// @author       pxgamer
// @include      *kat.cr/new/*
// @include      *kat.cr/usearch/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    $('.data').before('<div class="buttonsline"><select id="ul-status-select" style="letter-spacing: 0px; width: 160px !important;"><option value="all">Show All Uploaders</option><option value="uploader">Show only Normal Uploaders</option><option value="verified">Show only Verified Uploaders</option><option value="elite">Show only Elite Uploaders</option></select> <button class="siteButton bigButton" id="sortUlStatus"><span>Sort</span></button></div>');

    $('#sortUlStatus').on('click', function() {
        var ulSortType = $('#ul-status-select').val();

        switch (ulSortType) {
            case 'all':
                $('table.data tr').show();
                $('.ka.ka-verify').parent().parent().parent().parent().show();
                break;
            case 'uploader':
                $('table.data tr').show();
                $('.ka.ka-verify').parent().parent().parent().parent().hide();
                $('.ka.ka-star').parent().parent().parent().parent().parent().hide();
                break;
            case 'verified':
                $('table.data tr').hide();
                $('.ka.ka-verify').parent().parent().parent().parent().show();
                break;
            case 'elite':
                $('table.data tr').hide();
                $('.ka.ka-star').parent().parent().parent().parent().parent().show();
                break;
            default:
                $('table.data tr').show();
                break;
        }
    });
})();