LRH阿里巴巴淘宝天猫插件

LRH阿里巴巴淘宝天猫插件.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         LRH阿里巴巴淘宝天猫插件
// @namespace    http://leironghua.com/
// @version      1.4
// @description  LRH阿里巴巴淘宝天猫插件.
// @author       雷荣华
// @include      *tmall.com*
// @include      *taobao.com*
// @include      *1688.com*
// @run-at       document-start
// @grant        none
// ==/UserScript==

(function (d) {
    'use strict';
    var t = d.createElement("script"); t.type = "text/javascript"; t.async = "async"; t.id = "_lrh_js";
    t.setAttribute("exparams", JSON.stringify({
        GMVersion: GM_info.version,
        GMScriptName: GM_info.script.name,
        GMScriptDescription: GM_info.script.description,
        GMScriptVersion: GM_info.script.version,
        GMScriptUUID: GM_info.script.uuid
    }));
    // 天猫商家中心-商品分类管理
    if (window.location.href.indexOf("siteadmin.tmall.com/category/auction.htm") != -1) {
        t.src = window.location.protocol + "//plugin.leironghua.com/bundles/alibaba/" + encodeURI('天猫商家中心-商品分类管理');
    }
    // 天猫商家中心-商品管理
    if (window.location.href.indexOf("sell.tmall.com/auction/item/item_list.htm") != -1) {
        t.src = window.location.protocol + "//plugin.leironghua.com/bundles/alibaba/" + encodeURI('天猫商家中心-商品管理');
    }
    // 天猫商品详情页
    if (window.location.href.indexOf("detail.tmall.com/item.htm") != -1) {
        t.src = window.location.protocol + "//plugin.leironghua.com/bundles/alibaba/" + encodeURI('天猫商品详情页');
    }
    if (t.src && t.src != "") {
        t.src += "?v=" + new Date().getTime();
        d.getElementsByTagName("head")[0].appendChild(t);
    }
})(document);