Hide eBay items with price range

Hide items with a price range from the eBay search results

目前为 2018-05-19 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Hide eBay items with price range
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Hide items with a price range from the eBay search results
  6. // @author Steve Chambers
  7. // @match https://www.ebay.com/*
  8. // @match https://www.ebay.co.uk/*
  9. // ==/UserScript==
  10.  
  11. $("h3:contains('Show only')").parent().next().prepend("<li class='x-refine__main__list--value x-refine__main__list--aspect' name='LH_NPR'><div class='x-refine__multi-select ' id='w2-w0-multiselect[9]'><a class='cbx x-refine__multi-select-link' _sp='p2351460.m4118.c1'><input type='checkbox' aria-label='No price range' class='cbx x-refine__multi-select-checkbox heiwpr' autocomplete='off' aria-hidden='true' tabindex='-1' role='presentation'><span class='cbx x-refine__multi-select-cbx'>No price range</span><span class='x-refine__multi-select-histogram'></span></a></div></li>");
  12.  
  13. $("input.heiwpr").change(function() {
  14. $("span.DEFAULT:contains(' to ')").closest('li').toggle(!this.checked);
  15. });
  16.  
  17. $("input.heiwpr").prop('checked', true).change();