NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name FAQ Search Language Filter // @namespace PXgamer // @version 0.2 // @description Filters out any unwanted languages when searching the FAQ. // @author PXgamer // @include *kat.cr/faq/search* // @grant none // ==/UserScript== /*jshint multistr: true */ (function() { 'use strict'; // Set languages you want to keep var langs = [ "", // MUST KEEP THIS ONE... "en"/*, "br", "de", "es", "ar", "ka", "lt" */ ]; $('ul.textcontent.questionList li').hide(); $('ul.textcontent.questionList li a').each(function(){ var url_lang = $(this).attr('href').split('/')[4]; for (var i = 0; i < langs.length; i++) { if (url_lang == langs[i]) { $(this).parent().show(); } } }); })();