您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Only show searches with minimum quantity
// ==UserScript== // @name Min Quantity Multi Search Path Of Exile // @version 1 // @description Only show searches with minimum quantity // @author TheBerzzeekr // @match *://www.pathofexile.com/trade/* // @grant none // @namespace https://gf.qytechs.cn/users/294634 // ==/UserScript== var quantityenabled = false; var minimumQuantity = 10; var results; function init(){ results = document.getElementsByClassName("results")[0]; console.log(results); delete_lowQ(); } function delete_lowQ(){ if(results == null){ results = document.getElementsByClassName("results")[0]; setTimeout(delete_lowQ,1000); return; } if(results.childElementCount==0) {setTimeout(delete_lowQ,1000);return;} var child; var quantity; for(var i=1;i<results.childElementCount;++i){ child = results.children[i]; if(child.children[0].childElementCount!=3) continue; if(child.classList.contains("checked")) continue; child.classList.add("checked"); checkDIV(child); } setTimeout(delete_lowQ,1000); } function checkDIV(element){ var quantity = element.getElementsByClassName("colourDefault"); if(quantity==null || quantity.length==0) {setTimeout(function(){checkDIV(element);},500);return;} parseQuantity(quantity[0],element); } function parseQuantity(quantity,daddy){ var text = quantity.innerHTML; var altext = text.split("/"); var q = parseInt(altext[0]); if(q<minimumQuantity) daddy.parentNode.removeChild(daddy); } init();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址