Filter Uploads by UL Status

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

当前为 2016-05-15 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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;
        }
    });
})();