eBay Hide Price Range and Show Sold

Add menu to hide range items and items without Sold quantity

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         eBay Hide Price Range and Show Sold
// @namespace    JoseScript
// @version      2.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
// ==/UserScript==

$(".x-refine__left__nav").first().after('<li class="x-refine__main__list "><div><h3 class="x-refine__item">Filter</h3><div class="cbx"><input class="cbx hiderangeitems" name="hiderangeitems" type="checkbox"><span class="cbx">Hide Price Range Items</span></div><div class="cbx"><input class="cbx showonlysold" name="showonlysold" type="checkbox"><span class="cbx">Show Only Sold Items</span></div></div></li>');
$('#Results .prRange').parents('.sresult').addClass('rangeitem');
$('.DEFAULT:contains( to )').parents('.s-item').addClass('rangeitem');
$("#Results .lvextras:not(:contains('Sold'))").parents('.sresult').addClass('nosolditem');
$('li.s-item:not(:contains("Sold"))').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();
}