// ==UserScript==
// @name Filter Ideabox
// @namespace PXgamer
// @version 0.1
// @description Sort ideabox ideas by different methods
// @author PXgamer
// @include *kat.cr/ideabox/*
// @grant none
// @downloadURL none
// ==/UserScript==
/*jshint multistr: true */
(function() {
'use strict';
$('.buttonsline.floatleft').append(' ');
$('#sortIdeas').on('click', function() {
var ideaSortType = $('#sortIdeas-select').val();
switch (ideaSortType) {
case 'all':
$('div.ideaBox').show();
break;
case 'az': // Sort alphabetically (A-Z)
$('div.ideaBox').show();
break;
case 'no': // Sort by age (Newest to Oldest)
$('div.ideaBox').show();
break;
case 'votes': // Sort by votes (High to Low)
$('div.ideaBox').show();
break;
default:
$('div.ideaBox').show();
break;
}
});
})();