您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
RamisAmuki Utils.
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.gf.qytechs.cn/scripts/469263/1227523/RamisAmuki%20Utils.js
// ==UserScript== // @name RamisAmuki Utils // @description RamisAmuki Utils. // @author RamisAmuki // @grant none // ==/UserScript== function check_rate_price(liqs, querys) { const li_rate_node = liqs(querys.rate); const li_rate = li_rate_node != null ? parseInt(li_rate_node.innerText) : 0; const li_price = parseInt(liqs(querys.price).innerText.replace(",", "")); let base_rate = Number(localStorage.getItem("rate-input") || 90); let base_price = Number(localStorage.getItem("price-input") || 100); return [li_rate < base_rate, li_price > base_price].every((b) => b); } function disabling(li) { li.style.display = "none"; } function enabling(li) { li.style.display = ""; } function filter(checker, querys) { document .querySelectorAll(querys.lists) .forEach( (li) => (checker((q) => li.querySelector(q)) && disabling(li)) || enabling(li) ); } function appendFilterButton( checker, querys, margin = null, innerHTML = "Filter", float = "right", height = "30px", color = "#000", backgroundColor = "#f6dbae" ) { // ボタン要素を作成 const btn = document.createElement("button"); const label = document.createElement("label"); // ボタンを装飾 btn.innerHTML = innerHTML; btn.style.float = float; btn.style.height = height; btn.style.color = color; btn.style.backgroundColor = backgroundColor; if (margin != null) btn.style.margin = margin; // 実行する関数 btn.onclick = () => filter(checker, querys); // ボタンを追加 document.querySelector(querys.button_parent).appendChild(label); label.appendChild(btn); } function appendRatePriceInput(querys) { appendInput(querys, "rate", 99, 0, 90); appendInput(querys, "price", null, 1, 100, "100px"); } function appendInput(querys, text, max, min, default_val, width = "80px") { const input = document.createElement("input"); const label = document.createElement("label"); input.type = "number"; input.id = text + "-input"; if (max != null) input.max = max; input.min = min; input.step = 1; input.style.width = width; input.value = localStorage.getItem(input.id) || default_val; // nullだった場合、初期値にする input.onchange = () => { localStorage.setItem(input.id, input.value); }; label.htmlFor = input.id; label.style.fontSize = "13px"; label.style.maxWidth = "150px"; label.style.marginLeft = label.style.marginRight = "5px"; label.innerText = text + " : "; document.querySelector(querys.button_parent).appendChild(label); label.appendChild(input); } function waitForElement(selector, callback, intervalMs, timeoutMs) { const startTimeInMs = Date.now(); findLoop(); function findLoop() { if (document.querySelector(selector) != null) { callback(); return; } else { setTimeout(() => { if (timeoutMs && Date.now() - startTimeInMs > timeoutMs) return; findLoop(); }, intervalMs); } } }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址