您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Auto-apply a filter to show items actually in stock and not "Verified seller" rubbish
// ==UserScript== // @name B&Q/diy.com actually show stuff in store // @namespace http://tampermonkey.net/ // @version 1.1 // @description Auto-apply a filter to show items actually in stock and not "Verified seller" rubbish // @author You // @match https://www.diy.com/*.cat* // @match https://www.diy.com/search* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Define the filter key and value const filterKey = "1 hour Click & Collect and Home Delivery options"; const filterValue = "1 hour Click & Collect"; // Get the current URL let url = new URL(window.location.href); // Check if the filter is already applied if (url.searchParams.get(filterKey) !== filterValue) { // Add or update the filter parameter url.searchParams.set(filterKey, filterValue); // Replace the current URL and force reload window.location.href = url.href; } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址