Greasy Fork

Greasy Fork is available in English.

淘宝比价

try to take over the world!

目前为 2017-10-28 提交的版本,查看 最新版本

// ==UserScript==
// @name         淘宝比价
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://item.taobao.com/item.htm*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.src = "https://cdn.bootcss.com/jquery/1.7.1/jquery.min.js";
    document.body.appendChild(script);
    setTimeout(function(){
        var $j = jQuery.noConflict();
        $j(function(){
            var url99="https://s.taobao.com/search?q="+$j("div#J_Title h3").text().replace(/(^\s*)|(\s*$)|(\s)/g,"");
          //console.log(url99);
              $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/>");












        });


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