您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Ignore non-buyable items in PChome search page.
当前为
// ==UserScript== // @name PChome search enhancement // @namespace https://wiki.gslin.org/wiki/PChomeSearchEnhancement // @version 20180324.4 // @description Ignore non-buyable items in PChome search page. // @author Gea-Suan Lin <[email protected]> // @license MIT // @match https://ecshweb.pchome.com.tw/search/* // @grant none // ==/UserScript== (function() { 'use strict'; let sheet = document.createElement('style'); sheet.innerHTML = '.nonbuyable {opacity:0.33;}'; document.getElementsByTagName('head')[0].appendChild(sheet); let content = document.getElementById('CONTENT'); let selector = '.col3f:has(li.orderNotyet), .col3f:has(li.orderReplenish), .col3f:has(li.soldOut)'; let ob = new window.MutationObserver(function(el){ window.jQuery(selector, el.target).addClass('nonbuyable'); }); ob.observe(content, { childList: true, subtree: true, }); window.jQuery(selector).addClass('nonbuyable'); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址