// ==UserScript==
// @name eBay Hide Range and No Sold
// @namespace JoseScript
// @version 1.0
// @description Add menu to hide range items and items without Sold quantity
// @author Jose Araujo
// @match http*://www.ebay.com/sch/*
// @run-at document-end
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
// @downloadURL none
// ==/UserScript==
$("#LeftNavCategoryContainer").after('
');
$('#Results .prRange').parents('.sresult').addClass('rangeitem');
$("#Results .lvextras:not(:contains('Sold'))").parents('.sresult').addClass('nosolditem');
$('.hiderangeitems').click(updateFilter);
$('.showonlysold').click(updateFilter);
function updateFilter() {
$(".rangeitem").show();
$(".nosolditem").show();
if($(".hiderangeitems").is(":checked"))
$(".rangeitem").hide();
if($(".showonlysold").is(":checked"))
$(".nosolditem").hide();
}