Greasy Fork is available in English.

最惠买VIP视频全网解析+淘宝优惠券自动查询

本脚本精选解析网站为大家提供优酷VIP解析,爱奇艺VIP解析,腾讯VIP解析,乐视VIP解析,芒果VIP解析等各大视频网站视频解析服务,让你省去购买视频VIP费用,同时增加了淘宝优惠券自动查询功能,目前功能都在测试中,欢迎大家多提意见!

您查看的为 2019-01-03 提交的版本。查看 最新版本

// ==UserScript==
// @name         最惠买VIP视频全网解析+淘宝优惠券自动查询
// @namespace    http://www.zhmdy.top
// @version      1.8.3
// @description  本脚本精选解析网站为大家提供优酷VIP解析,爱奇艺VIP解析,腾讯VIP解析,乐视VIP解析,芒果VIP解析等各大视频网站视频解析服务,让你省去购买视频VIP费用,同时增加了淘宝优惠券自动查询功能,目前功能都在测试中,欢迎大家多提意见!
// @author       最惠买
// @include      *://*.iqiyi.com/v_*
// @include      *://v.qq.com/x/cover/*
// @include      *://v.youku.com/v_*
// @include      *://*.mgtv.com/b/*
// @include      *://*.le.com/ptv/vplay/*
// @include      *://*video.tudou.com/v*
// @include      *://*.acfun.cn/v/*
// @include      *://tv.sohu.com/*
// @include      *://film.sohu.com/*
// @include      *://v.pptv.com/show/*
// @include      *://v.yinyuetai.com/video/*
// @include      *://*.wasu.cn/Play/show/*
// @include      *://*.bilibili.com/video/*
// @include      *://*.bilibili.com/bangumi/play/*
// @include      *://item.taobao.com/*
// @include      *://*detail.tmall.com/*
// @include      *://*detail.tmall.hk/*
// @include      *://s.taobao.com/*
// @include      *://ai.taobao.com/search/*
// @include      *://list.tmall.com/*
// @include      *://*.liangxinyao.com/*
// @require      http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js
// @grant        none
// ==/UserScript==

 var head = document.getElementsByTagName('head')[0],
 cssURL = 'https://zuihuimai.net/tm/style.css',
 linkTag = document.createElement('link');

 linkTag.id = 'dynamic-style';
 linkTag.href = cssURL;
 linkTag.setAttribute('rel','stylesheet');
 linkTag.setAttribute('media','all');
 linkTag.setAttribute('type','text/css');

head.appendChild(linkTag);
(function() {
    'use strict';
    var goods_id = getQueryString('id');
    var version = 1.7;
    var zhm_url = 'https://www.zuihuimai.net/vrhr/index.php';
    var zhm_vurl = 'https://www.zuihuimai.net/zhmapp/zhm/index.php';
    if(goods_id){
	var htmlV = "<div id='zhm_div'><table class='zhm_tab' id='zhm_table'><tr><th><b onclick=window.open('http://vip.zuihuimai.net/') style='cursor:pointer'>优惠券</b></th><th>券后</th><th>有 效 期</th><th>操作</th></tr>";
	htmlV +="<tr><td colspan='5'>正在查询优惠信息,请稍候...</td></tr>";
	htmlV +="</table></div>";
	$('#J_LinkBasket').parent().after(htmlV);
	$('.J_LinkAdd').parent().after(htmlV);
	if(window.location.host.search('taobao.com') != -1){
		$('#zhm_table').addClass('zhm_tab_taobao');
	}else{
		$('#zhm_table').addClass('zhm_tab_tmall');
	}
	$.getJSON(zhm_url,{goods_id:goods_id,version:version},function(data){
	var html = "<table class='zhm_tab' id='zhm_table'><tr><th><b onclick=window.open('http://vip.zuihuimai.net/') style='cursor:pointer'>优惠券</b></th><th>券后</th><th>有 效 期</th><th>操作</th></tr>";

	if(data.code_data == '100'){
		var arrData = new Array();
		arrData = data.data_info;
		for(var i = 0;i<arrData.length;i++){
			html += "<tr ><td>"+arrData[i]['Quan_condition']+"</td><td>"+arrData[i]['Price']+"</td><td>"+arrData[i]['Quan_time']+"</td><td><b onclick=window.open('"+zhm_vurl+'?op=zhmLink&url='+arrData[i]['Quan_link']+"') style='cursor:pointer'>领取</b></td></tr>";
			}
		}
		if(data.code_data == '200'){
			html +="<tr><td colspan='5'>这个商品没有超值优惠券,去<b onclick=window.open('http://vip.zuihuimai.net') style='cursor:pointer'> 这里 </b>找找,或者 <b onclick=window.open('https://www.zuihuimai.net/zhmapp/index.php?op=zhmRand') style='cursor:pointer'>试试手气</b>。</td></tr>";
		}
		if(data.code_version == '400'){
			html +="<tr><td colspan='5'>有新版本啦!点<b onclick=window.open('https://www.zuihuimai.net/download.html') style='cursor:pointer'> 这里 </b>升级!</td></tr>";
		}
		html +="</table>";
		$('#zhm_div').html(html);
		$('#zhm_div').html(html);
		if(window.location.host.search('taobao.com') != -1){
			$('#zhm_table').addClass('zhm_tab_taobao');
		}else{
			$('#zhm_table').addClass('zhm_tab_tmall');
		}
	});
    }
})();
function getQueryString(e) {
	var t = new RegExp("(^|&)" + e + "=([^&]*)(&|$)");
	var a = window.location.search.substr(1).match(t);
	if (a != null) return a[2];
	return "";
}
(function() {
    'use strict';
    var zhm_url = window.location.href;
    var title = $(document).attr("title");
    var jx_title=new Array()
    jx_title[0]="解析"
    jx_title[1]="最惠买"
    jx_title[2]="正在播放"
    jx_title[3]="BaoDai"
    jx_title[4]="47Player"
    jx_title[5]="播放器"
    jx_title[6]="接口"
    jx_title[7]="淘宝"
    jx_title[8]="天猫"
    jx_title[9]="百域"
    var title_result = false;
    for(var n=0;n<jx_title.length;n++){
        if(title.indexOf(jx_title[n])!= -1 || title==false){
           title_result = true;
        }
    }

    if(title_result==false){
        var zhm_html = "<a href='http://www.zhmdy.top/index.php?jx_url="+zhm_url+"' target='_blank' style='z-index:99999;display:block;text-decoration:none;color:#c7000b;font-size:24px;background:#FFF;width:20px;height:35px;line-height:35px;border:1px solid #eee; position:fixed;left:0;top:200px;text-align:center;'>▶</a>";
        $("body").append(zhm_html);
    }
})();