// ==UserScript== // @name Filter Requests by Category // @namespace PXgamer // @version 0.2 // @description Adds a dropdown to filter the requests search by category. // @author PXgamer // @include *kat.cr/request/search/* // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; $('.buttonsline.floatleft').append(' '); $('.sortReqs').on('click', function() { $('.request-item.ideaBox').show(); if ($('.sortReqsOpt').val() != 'All') { $('h6.lightgrey a[href^="/request/popular/"]').each(function() { if ($(this).text() != $('.sortReqsOpt').val()) { $(this).parent().parent().parent().hide(); } }); } }); })();