您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
根据销量过滤淘宝搜索页面的商品
当前为
// ==UserScript== // @name Taobao Sales Filter // @namespace zzway.space // @version 0.1 // @description 根据销量过滤淘宝搜索页面的商品 // @author Zzway // @match https://s.taobao.com/* // @grant GM_setValue // @grant GM_getValue // ==/UserScript== (function() { 'use strict' window.onload= ()=>{ let li=document.createElement('li') li.title='鼠标点击空白处或按回车 即可生效' let input=document.createElement('input') input.type='number' input.min=0 input.style.width='100%' input.value=GM_getValue('limit',1) let span=document.createElement('span') span.innerText='销量过滤' span.style.backgroundColor='#f40' span.style.color='white' span.style['font-size']='x-large' li.appendChild(input) li.appendChild(span) let root=document.querySelector('.tb-side > ul') root.appendChild(li) let itemList = document.querySelectorAll('.items > div.item') let cntList = document.querySelectorAll('div.deal-cnt') filter() input.addEventListener('focusout',filter) input.addEventListener('keydown',e=>{ if(e.code=='Enter'){filter()} }) function filter(){ cntList.forEach((element, key) => { let number = Number(element.innerText.replace('人付款', '')) console.info(number) console.info(number < input.value) if (number < input.value) { itemList[key].hidden = true }else{ itemList[key].hidden = false } }) GM_setValue('limit', input.value) } } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址