Greasy Fork is available in English.

优酷、哔哩哔哩、爱奇艺、腾讯、芒果等全网VIP视频免费破解去广告,网易云音乐、QQ音乐、酷狗、酷我、虾米音乐🎶、百度网盘直连高速下载,淘宝、京东、聚划算、天猫、唯品会优惠券查询⭕️、美团外卖红包

1.优酷、爱奇艺、腾讯、芒果、乐视、哔哩哔哩等全网VIP视频观看,获取地址后解析地址.2.网易云音乐、QQ音乐、酷狗、酷我、虾米音乐🎶3.百度网盘直连高速下载4.淘宝、京东、聚划算、天猫、唯品会优惠券查询⭕️

您查看的为 2021-01-29 提交的版本。查看 最新版本

// ==UserScript==
// @name             优酷、哔哩哔哩、爱奇艺、腾讯、芒果等全网VIP视频免费破解去广告,网易云音乐、QQ音乐、酷狗、酷我、虾米音乐🎶、百度网盘直连高速下载,淘宝、京东、聚划算、天猫、唯品会优惠券查询⭕️、美团外卖红包
// @namespace          niohytg
// @version            1.7.9
// @description       1.优酷、爱奇艺、腾讯、芒果、乐视、哔哩哔哩等全网VIP视频观看,获取地址后解析地址.2.网易云音乐、QQ音乐、酷狗、酷我、虾米音乐🎶3.百度网盘直连高速下载4.淘宝、京东、聚划算、天猫、唯品会优惠券查询⭕️
// @author            things



// @match             *://m.tv.sohu.com/v/*
// @match             *://film.sohu.com/album/*
// @match             *://m.film.sohu.com/album/*
// @match             *://www.le.com/ptv/vplay/*
// @match             *://m.le.com/ptv/vplay/*
// @match             *://v.pptv.com/show/*
// @match             *://m.pptv.com/show/*
// @match             *://vip.pptv.com/show/*
// @match             *://www.acfun.cn/v/*
// @match             *://m.acfun.cn/v/*
// @match             *://www.bilibili.com/video/*
// @match             *://m.bilibili.com/video/*
// @match             *://www.bilibili.com/anime/*
// @match             *://m.bilibili.com/anime/*
// @match             *://www.bilibili.com/bangumi/play/*
// @match             *://m.bilibili.com/bangumi/play/*
// @match             *://vip.1905.com/play/*
// @match             *://www.wasu.cn/Play/show/*
// @match             *://m.wasu.cn/Play/show/*
// @license           GPL License
// @match        *://*.taobao.com/*
// @match        *://*.item.jd.com/*
// @match        *://*.tmall.com/*
// @match        *://*.tmall.hk/*
// @match        *://detail.vip.com/*
// @match             https://xbeibeix.com/api/bilibili/biliplayer/*
// @match             *://v.qq.com/x/cover/*
// @match             *://m.v.qq.com/x/cover/*
// @match             *://v.qq.com/x/page/*
// @match             *://m.v.qq.com/x/page/*
// @match             *://m.v.qq.com/*
// @match             *://www.iqiyi.com/v*
// @match             *://m.iqiyi.com/*
// @match             *://www.iqiyi.com/*
// @match             *://m.iqiyi.com/kszt/*
// @match             *://www.iqiyi.com/kszt/*
// @match             *://v.youku.com/v_show/*
// @match             *://m.youku.com/alipay_video/*
// @match             *://w.mgtv.com/b/*
// @match             *://m.mgtv.com/b/*
// @match             *://www.mgtv.com/b/*
// @match             *://tv.sohu.com/v/*


 // @exclude    *://s.click.taobao.com/*
 // @exclude    *://detail.tmall.com/item.htm?id=/*
  // @exclude    *://uland.taobao.com/*
// @exclude       *://login.taobao.com/*
// @exclude       *://pages.tmall.com/*
// @require      https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js
// @require      https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js
// @require      https://lib.baomitu.com/jquery/1.12.4/jquery.min.js
// @require      https://cdn.jsdelivr.net/npm/sweetalert2@9.14.0/dist/sweetalert2.min.js
// @require      https://lib.baomitu.com/echarts/4.6.0/echarts.min.js
// @require      https://lib.baomitu.com/layer/2.3/layer.js
// @require      https://lib.baomitu.com/reflect-metadata/0.1.13/Reflect.min.js
// @require      https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js
// @require      https://cdn.jsdelivr.net/npm/vuex@3.4.0/dist/vuex.min.js
// @require      https://cdn.jsdelivr.net/npm/qrcode@1.4.4/build/qrcode.min.js
// @require      https://cdn.jsdelivr.net/npm/crypto-js@4.0.0/crypto-js.js
// @require      https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js
// @require           https://cdn.bootcss.com/jquery/3.5.1/jquery.min.js
// @license      MIT
// @grant        GM_setClipboard
// @run-at       document-end
// @connect      shangxueba365.com
// @connect      api.wandhi.com
// @connect      cdn.jsdelivr.net
// @connect      tool.manmanbuy.com
// @connect      xbeibeix.com
// @grant        unsafeWindow
// @grant        GM_xmlhttpRequest
// @grant        GM_info
// @grant        GM.addStyle
// @grant        GM_getValue
// @grant        GM_setValue
// @grant        GM_notification
// @grant        GM_openInTab
// @grant        GM_deleteValue
// @grant        GM_registerMenuCommand
// @grant        GM_unregisterMenuCommand
// @grant             unsafeWindow
// @grant             GM_openInTab
// @grant             GM.openInTab
// @grant             GM_getValue
// @grant             GM.getValue
// @grant             GM_setValue
// @grant             GM.setValue
// @grant             GM_xmlhttpRequest
// @grant             GM.xmlHttpRequest
// @grant             GM_registerMenuCommand
// ==/UserScript==
(function() {

  'use strict';



// Your code here...
var style = document.createElement('link');
style.href = 'https://mmys.club/youhuiquan.css';
style.rel = 'stylesheet';
style.type = 'text/css';
document.getElementsByTagName('head').item(0).appendChild(style);

var obj = {};
obj.isDetailPageTaoBao = function (url) {
   if (url.indexOf("taobao") > 0 || url.indexOf("tmall") > 0 || url.indexOf(".detail.tmall.") > 0 || url.indexOf("//detail.tmall.hk/hk/item.htm") > 0 || url.indexOf(".jd.") > 0|| url.indexOf("detail.vip") > 0) {
       return  false ;
   } else {
       return true;
   }
};

if(obj.isDetailPageTaoBao(location.href))
{


(function () {
  'use strict';
  var $ = $ || window.$;
  var log_count = 1;
  var host = location.host;
  var parseInterfaceList = [];
  var selectedInterfaceList = [];
  var originalInterfaceList = [
      { name:"线路1", type:"1", url:"https://api.69ne.com/?url="},
      { name:"线路2", type:"1", url:"https://jx.idc126.net/jx/?url="},
      { name:"线路3", type:"1", url:"https://z1.m1907.cn/?jx="},
      { name:"线路4", type:"1", url:"https://vip.66parse.club/?url="},
      { name:"线路5", type:"1", url:"https://yi29f.cn/vip.php?url="},
      { name:"线路6", type:"1", url:"https://api.tv920.com/jx/?url="},
      { name:"线路7", type:"1", url:"https://www.h8jx.com/jiexi.php?url="},
      { name:"线路8", type:"1", url:"https://jsap.attakids.com/?url="},
      { name:"线路9", type:"1", url:"https://vip.mcyanyu.com/index.php?url="},
      { name:"线路10", type:"1", url:"https://maosp.me:7788/1/?url="},
      { nme:"自用解析弹窗一", type:"0", url:"http://jx.rdhk.net/?v="},
      { nme:"自用解析弹窗二", type:"0", url:"https://jiexi.380k.com/?url="},
      { nme:"自用解析弹窗三", type:"0", url:"https://jx.shunyiwenxiu.com/?url="},
      { nme:"自用解析弹窗四", type:"0", url:"https://jx.688ing.com/?search="},
      { nme:"自用解析弹窗五", type:"0", url:"https://api.69ne.com/?url="},
      { nme:"自用解析弹窗六", type:"0", url:"https://jiexi.380k.com/?url="},
      { nme:"自用解析线路一", type:"0", url:"https://jsap.attakids.com/?url="},
      { nme:"自用解析线路二", type:"0", url:"http://api.baiyug.vip/index.php?url="},
      { nme:"赢速", type:"0", url:"https://z1.m1907.cn/?jx="},
      { nme:"52", type:"0", url:"https://vip.52jiexi.top/?url="},
      { nme:"jisu", type:"0", url:"https://www.1717yun.com/jx/ty.php?url="},
      { nme:"618G", type:"0", url:"https://jx.618g.com/?url="},
      { nme:"明日", type:"0", url:"https://jx.yingxiangbao.cn/vip.php?url="},
      { nme:"豆腐", type:"0", url:"https://yi29f.cn/vip.php?url="},
      { nme:"花样", type:"0", url:"https://jx.quanmingjiexi.com/?url="},
      { nme:"蛋蛋", type:"0", url:"https://jx.52damu.com/dmjx/jiexi.php?url="},
      { name:"B站线路1", type:"2", url:"https://jx.shunyiwenxiu.com/?url="},
      { name:"B站线路2", type:"2", url:"https://jx.688ing.com/?search="},
      { name:"B站线路3", type:"2", url:"https://api.69ne.com/?url="},
      { name:"B站线路4", type:"2", url:"https://jiexi.380k.com/?url="},
      { name:"B站线路5", type:"2", url:"https://api.bingdou.net/?url="},
      { name:"B站线路6", type:"2", url:"https://jx.m3u8.tv/jiexi/?url="},
      { name:"B站线路7", type:"2", url:"https://jx.yparse.com/index.php?url="},
  ];


  function innerParse(url) {
      $("#iframe-player").attr("src", url);
  }


  function GMopenInTab(url, open_in_background) {
      if (typeof GM_openInTab === "function") {
          GM_openInTab(url, open_in_background);
      } else {
          GM.openInTab(url, open_in_background);
      }
  }


  function GMgetValue(name, value) {
      if (typeof GM_getValue === "function") {
          return GM_getValue(name, value);
      } else {
          return GM.getValue(name, value);
      }
  }


  function GMsetValue(name, value) {
      if (typeof GM_setValue === "function") {
          GM_setValue(name, value);
      } else {
          GM.setValue(name, value);
      }
  }


  function GMaddStyle(css) {
      var myStyle = document.createElement('style');
      myStyle.textContent = css;
      var doc = document.head || document.documentElement;
      doc.appendChild(myStyle);
  }

  var node = "";
  var player_nodes = [
      { url:"v.qq.com", node:"#mod_player"},
      { url:"www.iqiyi.com", node:"#flashbox"},
      { url:"v.youku.com", node:"#player"},
      { url:"w.mgtv.com", node:"#mgtv-player-wrap"},
      { url:"www.mgtv.com", node:"#mgtv-player-wrap"},
      { url:"tv.sohu.com", node:"#player"},
      { url:"film.sohu.com", node:"#playerWrap"},
      { url:"www.le.com", node:"#le_playbox"},
      { url:"video.tudou.com", node:".td-playbox"},
      { url:"v.pptv.com", node:"#pptv_playpage_box"},
      { url:"vip.pptv.com", node:".w-video"},
      { url:"www.wasu.cn", node:"#flashContent"},
      { url:"www.acfun.cn", node:"#player"},
      { url:"www.bilibili.com", node:"#player_module"},
      { url:"vip.1905.com", node:"#player"},
  ];
  for(var i in player_nodes) {
      if (player_nodes[i].url == host) {
          node = player_nodes[i].node;
      }
  }

  var videoPlayer = $("<div id='iframe-div' style='width:100%;height:100%;z-index:1000;'><iframe id='iframe-player' frameborder='0' allowfullscreen='true' width='100%' height='100%'></iframe></div>");
  var innerList = [];
  var outerList = [];
  var innerli = "";
  var innerli1 = "";
  var outerli = "";
  originalInterfaceList.forEach((item, index) => {
      if (item.type == "0") {
          innerList.push(item);
          innerli1 += "<li>" + item.nme + "</li>";
      }
      if (item.type == "1") {
          innerList.push(item);
          innerli += "<li>" + item.name + "</li>";
      }
      if (item.type == "2") {
          outerList.push(item);
          outerli += "<li>" + item.name + "</li>";
      }
  });
  parseInterfaceList = innerList.concat(outerList);

  var left = 0;
  var top = 100;
  var Position = GMgetValue("Position_" + host);
  if(!!Position){
      left = Position.left;
      top = Position.top;
  }
  GMaddStyle(`#vip_movie_box {cursor:pointer; position:fixed; top:400px; left:` + left + `px; width:0px; background-color:#2E9AFE; z-index:2147483647; font-size:20px; text-align:left;}
#vip_movie_box .item_text {width:28px; padding:4px 0px; text-align:center;}
#vip_movie_box .item_text img {width:35px; height:35px; display:inline-block; vertical-align:middle;}
#vip_movie_box .vip_mod_box_action {display:none; position:absolute; left:28px; top:0; text-align:center; background-color:#272930; border:1px solid gray;}
#vip_movie_box .vip_mod_box_action li{font-size:12px; color:#DCDCDC; text-align:center; width:60px; line-height:21px; float:left; border:1px solid gray; padding:0 4px; margin:4px 2px;}
#vip_movie_box .vip_mod_box_action li:hover{color:#FF4500;}
#vip_movie_box .selected_text {width:28px; padding:4px 0px; text-align:center;}
#vip_movie_box .selected_text img {width:35px; height:35px;display:inline-block; vertical-align:middle;}
#vip_movie_box .vip_mod_box_selected {display:none; position:absolute; left:28px; top:0; text-align:center; background-color:#008B8B; border:1px solid gray;}
#vip_movie_box .vip_mod_box_selected ul{height:455px; overflow-y: scroll;}
#vip_movie_box .vip_mod_box_selected li{font-size:14px; color:#00FF00; text-align:center; width:120px; line-height:27px; float:left; border:1px dashed gray; padding:0 4px; margin:4px 2px;}
#vip_movie_box .vip_mod_box_selected li:hover{color:#FF4500;}`);

var html = $(`<div id='vip_movie_box'>
<div class='item_text'>
<button style="font-size: 80%;"> 视频解析 </button>

<div class='vip_mod_box_action' >
<div style='display:flex;'>
<div style='width:960px; padding:30px 0;'>
<div style='font-size:20px; text-align:left; color:#87CEFA; line-height:21px;'>内嵌播放</div>
<ul style='margin:0 10px;'>
` + innerli + `
<div style='clear:both;'></div>
</ul>
<div style='font-size:20px; text-align:left; color:#87CEFA; line-height:21px;'>弹窗播放</div>
<ul style='margin:0 10px;'>
` + innerli1 + `
<div style='clear:both;'></div>
</ul>
<div style='font-size:20px; text-align:left; color:#87CEFA; line-height:21px;'>B站专用</div>
<ul style='margin:0 10px;'>
` + outerli + `
<div style='clear:both;'></div>
</ul>
</div>
</div>
</div>
</div>
<div class='selected_text'>



<div class='vip_mod_box_selected' >
<div style='display:flex;'>
<div style='width:1080px; padding:20px 0;'>
</div>
</div>
</div>
</div>
</div>`);

  $("body").append(html);

  $(".item_text").on("mouseover", () => {
      $(".vip_mod_box_action").show();
  });
  $(".item_text").on("mouseout", () => {
      $(".vip_mod_box_action").hide();
  });

              $(".selected_text").on("mouseover", () => {
              $(".vip_mod_box_selected").show();
          });
          $(".selected_text").on("mouseout", () => {
              $(".vip_mod_box_selected").hide();
          });

  $(".vip_mod_box_action li").each((index, item) => {
      item.addEventListener("click", () => {
          if (parseInterfaceList[index].type == "1","2") {
              if (document.getElementById("iframe-player") == null) {
                  var player = $(node);
                  player.empty();
                  player.append(videoPlayer);
              }
              innerParse(parseInterfaceList[index].url + location.href);
          }
          if (parseInterfaceList[index].type == "0")
          {
              GMopenInTab(parseInterfaceList[index].url + location.href, false);
          }
      });
  });

  var movie_box = $("#vip_movie_box");
  movie_box.mousedown(function(e) {

      if (e.which == 3) {
          e.preventDefault() //
          movie_box.css("cursor", "move");
          var positionDiv = $(this).offset();
          var distenceX = e.pageX - positionDiv.left;
          var distenceY = e.pageY - positionDiv.top;

          $(document).mousemove(function(e) {
              var x = e.pageX - distenceX;
              var y = e.pageY - distenceY;
              if (x < 0) {
                  x = 0;
              } else if (x > $(document).width() - movie_box.outerWidth(true)) {
                  x = $(document).width() - movie_box.outerWidth(true);
              }
              if (y < 0) {
                  y = 0;
              } else if (y > $(document).height() - movie_box.outerHeight(true)) {
                  y = $(document).height() - movie_box.outerHeight(true);
              }

              movie_box.css("left", x);
              movie_box.css("top", y);
              GMsetValue("Position_" + host,{ "left":x, "top":y});
          });
          $(document).mouseup(function() {
              $(document).off('mousemove');
              movie_box.css("cursor", "pointer");
          });
          $(document).contextmenu(function(e) {
              e.preventDefault();
          })
      }
  });

var localurl = location.href;
  function addScript(url){
      var s = document.createElement('script');
      s.setAttribute('src',url);
      document.body.appendChild(s);
  }

  var reg_bili = /www.bilibili.com\/video.*/;
  var reg_xibei = /xbeibeix.com\/api\/bilibili\/biliplayer.*/;
  var reg_acfun = /www.acfun.cn\/v\/.*/;

  function bilibili(){
      var url,data,ele
      if(location.href!=localurl){
          localurl = location.href;
          $('div#dlbtn').remove();
      }
      try{
          if($('div#dlbtn').length==0 && document.querySelectorAll('.duration').length>0 ){
              data = __INITIAL_STATE__||false;
              if(data){
                  if(data.p.length!==0){
                      url = `https://xbeibeix.com/api/bilibili/biliplayer/?url=${data.bvid}?p=${data.p}`;
                  }else{
                      url = `https://xbeibeix.com/api/bilibili/biliplayer/?url=${data.bvid}`;
                  }
                  var videowebsite = '<a></a>'
                  ele = `<div id="dlbtn" style="padding:10px;"><a target="_blank" href="${url}" style="color:white;width:fit-content;background-color:#B4045F;padding:10px;">\u70B9\u51FB\u89E3\u6790\u4E0B\u8F7D\u89C6\u9891</a>${videowebsite}</div>`;
                  $('div#viewbox_report').after(ele);
              }
          }
          else{
          }
      }catch(e){
          console.log('bilibili',e.message);
          if(e.message.search('$')>=0){
          }

      }
  }
  function acfun(){
      var ele,content='',h1,videolist;
      try{
          h1 = $('h1.title');
          videolist = JSON.parse(videoInfo.currentVideoInfo.ksPlayJson).adaptationSet[0].representation;
          if(videolist.length>0 && $('div#downloadlist').length==0){
              for(var i=0;i<videolist.length;i++){
                  content = content + `<div style="margin:5px 0px;"><div style="display:inline-block;font-weight:bold;width:10%;">${videolist[i].qualityLabel}:</div><input type="text" style="color:#5FB404;width:68%" value="${videolist[i].url}"></div>`;
              }
              ele = `<div id="downloadlist" style="margin:15px 0px;color:#DF0174;"><div>\u8BF7\u4F7F\u7528m3u8\u4E0B\u8F7D\u5DE5\u5177(<a target="_blank" href="https://xsyhnb.lanzoui.com/iTA2rg3hfef">\u63A8\u8350\u5DE5\u5177</a>)</div>${content}</div>`;
          }
          h1.after(ele);
      }catch(e){
          console.log('acfun',e.message);
      }
  }

  function xibei(){

      if($('div#videolink').length==0){
          var link = document.querySelector('iframe').contentDocument.querySelector('video').src;
          var ele = `<div id="videolink" style="padding:10px;overflow-wrap: break-word;background-color:white;height:20%;">\u89C6\u9891\u4E0B\u8F7D\u5730\u5740\uFF08MP4\uFF09:<a target="_blank" href="${link}">${link}</a></div>`;
          $('body').append(ele);
          $('iframe').attr('height','80%');
      }
  }

  function xsyhnbrun(){
      if(reg_bili.test(localurl)){bilibili();}
      else if(reg_xibei.test(localurl)){xibei();}
      else if(reg_acfun.test(localurl)){acfun();}
  }
  setInterval(xsyhnbrun,500);

  switch (host) {
      case 'www.iqiyi.com':
          //--------------------------------------------------------------------------------
          unsafeWindow.rate = 0;
          unsafeWindow.Date.now = () => {
              return new unsafeWindow.Date().getTime() + (unsafeWindow.rate += 1000);
          }
          setInterval(() => {
              unsafeWindow.rate = 0;
          }, 600000);
          //--------------------------------------------------------------------------------
          setInterval(() => {
              if (document.getElementsByClassName("cupid-public-time")[0] != null) {
                  $(".skippable-after").css("display", "block");
                  document.getElementsByClassName("skippable-after")[0].click();
              }
              $(".qy-player-vippay-popup").css("display", "none");
              $(".black-screen").css("display", "none");
          }, 500);
          break
      case 'v.qq.com':
          //--------------------------------------------------------------------------------
          setInterval(() => { //视频广告加速
              $(".txp_ad").find("txpdiv").find("video")[0].currentTime = 1000;
              $(".txp_ad").find("txpdiv").find("video")[1].currentTime = 1000;
          }, 1000)
          //--------------------------------------------------------------------------------
          setInterval(() => {
              var txp_btn_volume = $(".txp_btn_volume");
              if (txp_btn_volume.attr("data-status") === "mute") {
                  $(".txp_popup_volume").css("display", "block");
                  txp_btn_volume.click();
                  $(".txp_popup_volume").css("display", "none");
              }
              //$("txpdiv[data-role='hd-ad-adapter-adlayer']").attr("class", "txp_none");
              $(".mod_vip_popup").css("display", "none");
              $(".tvip_layer").css("display", "none");
              $("#mask_layer").css("display", "none");
          }, 500);
          break
      case 'v.youku.com':
          //--------------------------------------------------------------------------------
          window.onload = function () {
              if (!document.querySelectorAll('video')[0]) {
                  setInterval(() => {
                      document.querySelectorAll('video')[1].playbackRate = 16;
                  }, 100)
              }
          }
          //--------------------------------------------------------------------------------
          setInterval(() => {
              var H5 = $(".h5-ext-layer").find("div")
              if(H5.length != 0){
                  $(".h5-ext-layer div").remove();
                  var control_btn_play = $(".control-left-grid .control-play-icon");
                  if (control_btn_play.attr("data-tip") === "播放") {
                      $(".h5player-dashboard").css("display", "block");
                      control_btn_play.click();
                      $(".h5player-dashboard").css("display", "none");
                  }
              }
              $(".information-tips").css("display", "none");
          }, 500);
          break
      case 'www.mgtv.com':
          break
      case 'tv.sohu.com':
          setInterval(() => {
              $(".x-video-adv").css("display", "none");
              $(".x-player-mask").css("display", "none");
              $("#player_vipTips").css("display", "none");
          }, 500);
          break

      case 'www.bilibili.com':
          setInterval(() => {
              $(".player-limit-mask").remove();
          }, 500);
          break
  }
})();




}

else{

  (function() {
      'use strict';


      // Your code here...
      var style = document.createElement('link');
      style.href = 'https://mmys.club/youhuiquan.css';
      style.rel = 'stylesheet';
      style.type = 'text/css';
      document.getElementsByTagName('head').item(0).appendChild(style);




      var obj = {};
      obj.initSearchHtml = function (selectorList) {
          setInterval(function () {
              selectorList.forEach(function (selector) {
                  obj.initSearchItemSelector(selector);
              });
          }, 3000);
      };


      obj.basicQuery = function () {
          setInterval(function () {
              $(".tb-cool-box-wait").each(function () {
                  obj.basicQueryItem(this);
              });
          }, 3000);
      };

      obj.initSearchItemSelector = function (selector) {
          $(selector).each(function () {
              obj.initSearchItem(this);
          });
      };



      obj.isDetailPageTaoBao = function (url) {
          if (url.indexOf("//item.taobao.com/item.htm") > 0 || url.indexOf("//detail.tmall.com/item.htm") > 0 || url.indexOf("//chaoshi.detail.tmall.com/item.htm") > 0 || url.indexOf("//detail.tmall.hk/hk/item.htm") > 0) {
              return true;
          } else {
              return false;
          }
      };
   obj.isDetailPageJD = function (url) {
          if (url.indexOf("//item.jd.com") > 0 ) {
              return true;
          } else {
              return false;
          }
      };
      obj.isVailidItemId = function (itemId) {
          if (!itemId) {
              return false;
          }

          var itemIdInt = parseInt(itemId);
          if (itemIdInt == itemId && itemId > 10000) {
              return true;
          }
          else {
              return false;
          }
      };

      obj.isValidNid = function (nid) {
          if (!nid) {
              return false;
          }
          else if (nid.indexOf('http') >= 0) {
              if (obj.isDetailPageTaoBao(nid) || nid.indexOf("//detail.ju.taobao.com/home.htm") > 0) {
                  return true;
              }
              else {
                  return false;
              }
          }
          else {
              return true;
          }
      };


      if (obj.isDetailPageTaoBao(location.href)) {
            {
            var couponArea2223 = '<div class="coupon-wrap"><div class="coupon"  style="position: unset"><div class="coupon-info" style="position: unset;border-right: 55px dashed white;"><div class="coupon-desc">必得淘宝全品类优惠券</div></div><div><a class="coupon-get" style="border-right: 0px dashed white;" href="https://pic4.zhimg.com/v2-ae7dbb04678495fca5653543d68d931c_r.jpg" target="_blank">立即领取</a></div></div><div></div></div>';


                             if (location.href.indexOf('//detail.tmall') != -1) {

                    $('.tm-fcs-panel').after(couponArea2223);
                }
                else {

                    $('ul.tb-meta').after(couponArea2223);
                }
        }
        {
            var couponArea222 = '<div class="coupon-wrap"><div class="coupon"  style="position: unset"><div class="coupon-info" style="position: unset;border-right: 55px dashed white;"><div class="coupon-desc">必得京东全品类优惠券</div></div><div><a class="coupon-get" style="border-right: 0px dashed white;" href="https://pic3.zhimg.com/v2-493f3e576897b75325747a2a975ab9f9_r.jpg" target="_blank">立即领取</a></div></div><div></div></div>';


                             if (location.href.indexOf('//detail.tmall') != -1) {

                    $('.tm-fcs-panel').after(couponArea222);
                }
                else {

                    $('ul.tb-meta').after(couponArea222);
                }
        }


              if ( location.href.indexOf('34850283') > -1){
                 

              }else
              {


          var params = location.search.split('?')[1].split('&');
           var productId;

          for (var index in params) {
              if (params[index].split('=')[0] == 'id') {
                 productId = params[index].split('=')[1];
                  break;
              }
          }

                  var df;

          $.get('https://api.tbk.dingdanxia.com/tbk/id_privilege?apikey=rQKqeQYEEb0bIsg5EpnkmWlNRXRe7iZj&id='+ productId ,function(data,suscss) {

              var   rr =data.split(',')[3];
               var  bb =  data.substr(data.length-4,1);


              if(bb == ':'){

              }
                var   rrr =rr.slice(20);

            var dataa = data.slice(85);


              var da =dataa.split(',')[0];
               var s = rrr.substr(0, 4)
               df =s;

              if (bb != ':'&& s== "http") {

                   var  cc =  data.substr(data.length-6,3);

                  var couponArea = '<div class="coupon-wrap"><div class="coupon"><div class="coupon-info"><div class="coupon-desc">优惠券 '+ cc +' 元</div></div><div style="margin-top: 20px;">领取方式:淘宝APP或支付宝APP扫一扫,在手机端领券购买</div><div style="margin-top: 5px;"><img src="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data='+ rrr +'"  alt="上海鲜花港 - 郁金香" /></div></div><div></div></div>';
                 if (location.href.indexOf('//detail.tmall') != -1) {

                    $('.tm-fcs-panel').after(couponArea);
                }
                else {

                    $('ul.tb-meta').after(couponArea);
                }
              }
               else
               {

    if (s== "http"){
  $.get('https://api.tbk.dingdanxia.com/tbk/super_search?apikey=rQKqeQYEEb0bIsg5EpnkmWlNRXRe7iZj&q=' + productId + '&has_coupon=false', function (dataa, suscss) {

                            var srrrr = dataa.split(',')[41].slice(7);


                            if (srrrr.length > 200) {



                                      var coupont1 = '<div  style="margin-left: 166px;margin-top: 16px;"><strong>快速购买,无需登录(淘宝、支付宝APP扫一扫)</br><img src="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=https:'+ srrrr +'"  alt="上海鲜花港 - 郁金香" /></div>';
            $('.tb-action').after(coupont1);


                            }


                            else {

                                var sr = dataa.split(',')[42].slice(7);

                                if (sr.length > 200) {



                                      var coupontbeee = '<div  style="margin-left: 166px;margin-top: 16px;"><strong>快速购买,无需登录(淘宝、支付宝APP扫一扫)</br><img src="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=https:'+ sr +'"  alt="上海鲜花港 - 郁金香" /></div>';
            $('.tb-action').after(coupontbeee);







                                }
                                else {



                                    var sp = dataa.split(',')[43].slice(7);

                                    if (sp.length > 200) {


  var coupont2 = '<div  style="margin-left: 166px;margin-top: 16px;"><strong>快速购买,无需登录(淘宝、支付宝APP扫一扫)</br><img src="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=https:'+ sp +'"  alt="上海鲜花港 - 郁金香" /></div>';
            $('.tb-action').after(coupont2);
                                    }

                                    else {

                                          var spp = dataa.split(',')[44].slice(7);

  var coupont3 = '<div  style="margin-left: 166px;margin-top: 16px;"><strong>快速购买,无需登录(淘宝、支付宝APP扫一扫)</br><img src="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=https:'+ spp +'"  alt="上海鲜花港 - 郁金香" /></div>';
            $('.tb-action').after(coupont3);


                                    }
                                }


                            }


                            return;




                        })

   

              }
                   else{


  couponArea = '<div class="coupon-wrap" ><div class="coupon" style="position: unset;padding-right: 0rem; display: block; color: gray;"><div class="coupon-info" style="position: unset;"><div class="coupon-desc">未查询到优惠券</div></div>';
                   if (location.href.indexOf('//detail.tmall') != -1) {


                      $('.tm-fcs-panel').after(couponArea);
                  }
                  else {

                      $('ul.tb-meta').after(couponArea);
                  }

                   }


               }})




      }
  }


      else {
   if(obj.isDetailPageJD(location.href) && location.href.indexOf('3545251') == -1){
              var Areaaaab = '<div class="coupon-wrap"><div class="coupon"  style="position: unset"><div class="coupon-info" style="position: unset;border-right: 55px dashed white;"><div class="coupon-desc">必得淘宝全品类优惠券</div></div><div><a class="coupon-get" style="border-right: 0px dashed white;" href="https://pic4.zhimg.com/v2-ae7dbb04678495fca5653543d68d931c_r.jpg" target="_blank">立即领取</a></div></div><div></div></div>';


                            $('#choose-btns').after(Areaaaab);


  var Areaaaa = '<div class="coupon-wrap"><div class="coupon"  style="position: unset"><div class="coupon-info" style="position: unset;border-right: 55px dashed white;"><div class="coupon-desc">必得京东全品类优惠券</div></div><div><a class="coupon-get" style="border-right: 0px dashed white;" href="http://m.qpic.cn/psc?/V50IKeIn0RUcWW3W9fAk073FC51DOFrq/ruAMsa53pVQWN7FLK88i5u608m3X2hT3OedmOBG5WhmFu6.eOkut5kt.QQ.nIlc30YKLpMB3.KtOBYLy8297Wy*LLlx2QifHxUyPFEpESoQ!/b&bo=YgcGBWIHBgUBByA!&rf=viewer_4" target="_blank">立即领取</a></div></div><div></div></div>';


                            $('#choose-btns').after(Areaaaa);


               let elli=   $('.ellipsis').html()
         var tb7  = elli.replace("(","");
         var tb8 = tb7.replace(")","");




              $.get('https://api.tbk.dingdanxia.com/jd/by_unionid_promotion?apikey=rQKqeQYEEb0bIsg5EpnkmWlNRXRe7iZj&materialId='+ location.href +'&unionId=1003545251&autoSearch=true' ,function(dataaa,suscss) {
                  debugger;
  if(dataaa.length >100){
                    var   sp  =dataaa.split(',')[2].slice(20);
                  var have = dataaa.split(',')[5].slice(14);

                    var con =dataaa.split(',')[8].slice(8);

                 if(have.indexOf('Time') != -1){

                     var money =dataaa.split(',')[6].slice(10);

               var couponArea = '<div class="coupon-wrap"><div class="coupon"  style="position: unset"><div class="coupon-info" style="margin-top: 6px;position: unset;border-right: 5px dashed white;"><div class="coupon-desc">优惠券'+ money +'元</div></div><div style="margin-top: 20px;">领取方式:微信或京东APP扫一扫,在京东手机端购买</div><div style="margin-top: 5px;"><img src="https://api.qrserver.com/v1/create-qr-code/?size=100x100&data='+ sp +'"  alt="上海鲜花港 - 郁金香" /></div></div><div></div></div>';




                            $('#choose-btns').after(couponArea);


                 }
                  else{
 if(sp.indexOf('https') != -1 && elli.length <20 ){
                       
                          var coupon = '<div  style="margin-left: 366px;"><strong>便捷购买,无需登录</br>(微信、京东APP扫一扫)</br><img src="https://api.qrserver.com/v1/create-qr-code/?size=100x100&data='+ sp +'"  alt="上海鲜花港 - 郁金香" /></div>';
            $('#choose-btns').after(coupon);
              



                       }

                     









                  }






              }else{


  
                    }
                    })


      }

      else{

             if(location.href.indexOf('https://detail.vip.com') != -1){

            $.get('https://api.tbk.dingdanxia.com/vip/url_privilege?apikey=rQKqeQYEEb0bIsg5EpnkmWlNRXRe7iZj&url='+ location.href +'&itemInfo=true' ,function(dataaa,suscss) {
if(dataaa.length >100){
    let dataww = JSON.parse(dataaa);

            if(dataww.data.itemInfo.couponInfo.buy){

                var couponArea = '<div class="coupon-wrap"><div class="coupon"  style="position: unset"><div class="coupon-info" style="margin-top: 6px;position: unset;border-right: 5px dashed white;"><div class="coupon-desc">优惠券'+ dataww.data.itemInfo.couponInfo.buy +'元</div></div><div style="margin-top: 20px;">优惠券领取方式:微信或者唯品会app扫一扫,在手机端唯品会购买</div><div style="margin-top: 5px;"><img src="https://api.qrserver.com/v1/create-qr-code/?size=100x100&data='+ dataww.data.url +'"  alt="上海鲜花港 - 郁金香" /></div></div><div></div></div>';
                            $('#J_detail_buy').after(couponArea);


            }
         else{


            var couponvip = '<div style="margin-left: 300px;"><strong>快速购买,无需登录</br>(微信、唯品会app扫一扫)</br><img src="https://api.qrserver.com/v1/create-qr-code/?size=100x100&data='+ dataww.data.url +'"  alt="上海鲜花港 - 郁金香" /></div>';
            $('#J_detail_buy').after(couponvip);
         }




               }







        })

    }



      }

      }
  })();


}
})()