Greasy Fork镜像 支持简体中文。

淘宝天猫商品搜索比价

try to take over the world!

  1. // ==UserScript==
  2. // @name 淘宝天猫商品搜索比价
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1.2
  5. // @description try to take over the world!
  6. // @author You
  7. // @match https://item.taobao.com/item.htm*
  8. // @match https://detail.tmall.com/item.htm*
  9. // @require https://cdn.bootcss.com/jquery/1.7.1/jquery.min.js
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. if(window.location.host=="item.taobao.com"){
  16. setTimeout(function(){
  17. var $j = jQuery.noConflict();
  18. $j(function(){
  19. var url99="https://s.taobao.com/search?q="+$j("div#J_Title h3").text().replace(/(^\s*)|(\s*$)|(\s)/g,"");
  20. //console.log(url99);
  21. $j("div#J_Title p.tb-subtitle").after("<a href="+url99+" target='_blank' style='font-size: xx-large;font-weight: bold;color: red;'>===搜索比价===</a><br/>");
  22.  
  23.  
  24. });
  25.  
  26.  
  27. },500);
  28. }else if(window.location.host=="detail.tmall.com"){
  29.  
  30. setTimeout(function(){
  31. var $j = jQuery.noConflict();
  32. $j(function(){
  33. var url99="https://s.taobao.com/search?q="+$j("div.ItemHeader--root--DXhqHxP h1").text().replace(/(^\s*)|(\s*$)|(\s)/g,"");
  34. //console.log(url99);
  35. $j("div.ItemHeader--root--DXhqHxP h1").after("<a href="+url99+" target='_blank' style='font-size: xx-large;font-weight: bold;color: red;'>===搜索比价===</a><br/>");
  36.  
  37.  
  38. });
  39.  
  40.  
  41. },500);
  42.  
  43.  
  44.  
  45.  
  46. }
  47.  
  48.  
  49. // Your code here...
  50. })();

QingJ © 2025

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