您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide items with a price range from the eBay search results
当前为
- // ==UserScript==
- // @name Hide eBay items with price range
- // @namespace http://tampermonkey.net/
- // @version 0.4
- // @description Hide items with a price range from the eBay search results
- // @author Steve Chambers
- // @match https://www.ebay.com/*
- // @match https://www.ebay.co.uk/*
- // ==/UserScript==
- // $("h3:contains('Show only')").parent().parent().next().prepend('<div class="cbx"><a class="cbx"><input style="margin: 0 3px 0 4px;" tabindex="-1" type="checkbox" name="LH_NoPriceRanges"><span class="cbx">No price ranges</span></input></a></div>');
- $("h3:contains('Show only')").parent().parent().next().prepend('<li class="x-refine__main__list"><div><h3 class="x-refine__item"><input style="margin: 0 3px 0 4px;" tabindex="-1" type="checkbox" name="LH_NoPriceRanges"><span class="cbx">No price ranges</span></input></h3></div></li>');
- $("h3:contains('Show only')").parent().parent().find('ul:first').append('<li class="x-refine__main__list"><input style="margin: 6px 6px 0 1px;" tabindex="-1" type="checkbox" name="LH_NoPriceRanges"/>No price ranges</li>');
- $("input[name='LH_NoPriceRanges']").change(function() {
- $("span.prRange").closest('li.sresult').toggle(!this.checked);
- $("span.DEFAULT:contains(' to ')").closest('li.s-item').toggle(!this.checked);
- });
- $("input[name='LH_NoPriceRanges']").prop("checked", false).change();