此脚本不包括自动提交 微信提示 以及防止延迟刷货(防止有时候电脑端没有更新放货)

用法 导入油猴脚本

// ==UserScript==
// @name         刷燕尾蝶 蓝闪蝶 简版 无微信提示 自动提交
// @namespace    http://null.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://z.jd.com/project/details/90365.html
// @match        https://z.jd.com/project/details/90365.html
// @grant        GM_xmlhttpRequest
// ==/UserScript==
//
    document.title="fck it";
    $(".box-grade").each(function(index){
        get("998","3000",$(this));
        get("399","2200",$(this));
      //  get("1999","1700",$(this));
      //  get("999","1200",$(this));
        //===================
    });
    function get(m,p,t){
        var aaa=t.find(".Jfold").find(".t-price").find("span").html();
        var bbb=t.find(".box-content").find(".box-limit").find(".limit-num").find("span").html();
        if(aaa==m && bbb==p){
            console.log(m+"="+p+"-无货</br>");
            var ccc=t.find(".Jfold").find(".t-full").length;
            if(ccc==1){
                setTimeout(re,1000);
            }else{
                t.find(".box-content").find(".box-btn").find(".common-btn").click();
                window.open( "http://dx.sc.chinaz.com/Files/DownLoad/sound1/201707/8950.mp3");
            }
        }
    }
    function re(){
        window.location.reload();
    }
最后修改:2017 年 11 月 25 日
如果觉得我的文章对你有用,请随意赞赏