图搜图-t

淘宝以图搜图跳转找家纺

目前為 2024-03-12 提交的版本,檢視 最新版本

// ==UserScript==
// @name         图搜图-t
// @namespace    http://tampermonkey.net/
// @version      2024-03-12
// @description  淘宝以图搜图跳转找家纺
// @author       You
// @match        https://s.taobao.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=taobao.com
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    window.addEventListener('scroll',()=>{
     var doms = document.getElementsByClassName('ShopInfo--shopName--rg6mGmy')
     var imgs = document.getElementsByClassName('MainPic--mainPic--rcLNaCv')
     var priceList = document.getElementsByClassName('Price--priceWrapper--Q0Dn7pN ')
     for(let i=0;i<doms.length;i++){
         const url = imgs[i]?imgs[i].src.replace(/_.webp/g, ""):''
         const price = priceList[i]?priceList[i].childNodes[1].textContent+priceList[i].childNodes[2].textContent:''
doms[i].onclick = null
         doms[i].setAttribute("href", "https://search.zhaojiafang.com/search/index/searchbyimage?images="+url+'&&price='+price);
     }
    })

    // Your code here...
})();

QingJ © 2025

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