PChome search enhancement

Ignore .orderReplenish & .soldOut in PChome search page.

目前為 2018-02-23 提交的版本,檢視 最新版本

// ==UserScript==
// @name         PChome search enhancement
// @namespace    https://wiki.gslin.org/wiki/PChomeSearchEnhancement
// @version      20180223.0
// @description  Ignore .orderReplenish & .soldOut 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';

    var content = document.getElementById('CONTENT');
    var tr = 1 / 3;

    var ob = new window.MutationObserver(function(el){
        window.jQuery('.col3f:has(li.orderReplenish), .col3f:has(li.soldOut)', el.target).css('opacity', tr);
    });

    ob.observe(content, {
        childList: true,
        subtree: true,
    });

    window.jQuery('.col3f:has(li.orderReplenish), .col3f:has(li.soldOut)', content).css('opacity', tr);
})();

QingJ © 2025

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