Path of Exile Trade always fuzzy search (tilde)

always use fuzzy search, waits for active input bar and puts ~ (tilde) at the front

目前為 2023-04-17 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Path of Exile Trade always fuzzy search (tilde)
// @namespace    https://github.com/Alistair1231/my-userscripts/
// @version      0.2.4
// @description  always use fuzzy search, waits for active input bar and puts ~ (tilde) at the front
// @author       Alistair1231
// @match        https://www.pathofexile.com/trade*
// @icon         https://www.google.com/s2/favicons?domain=pathofexile.com
// @grant        none
// @license GPL-3.0
// ==/UserScript==

(function() {
    'use strict';
    setInterval(() => {
        let searchbox = document.querySelectorAll(".multiselect--active .multiselect__input");
        Array.from(searchbox).map(x => {
            if ((x != null) && (x.value.match(/^~.*$/)==null))
                x.value= "~"+x.value;
        })
    }, 1000);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址