Greasy Fork is available in English.

磁力链接百度网盘补完

磁力链接、百度网盘补完

// ==UserScript==
// @name         磁力链接百度网盘补完
// @namespace    http://tampermonkey.net/
// @version      2.70
// @description  磁力链接、百度网盘补完
// @author       backrock12
// @include      *
// @grant        GM_registerMenuCommand
// @grant        GM_unregisterMenuCommand
// @grant        GM_xmlhttpRequest
// @grant        GM_setValue
// @grant        GM_getValue
// @require      http://libs.baidu.com/jquery/2.0.0/jquery.min.js
// @exclude      /(^[^:\/#\?]*:\/\/([^#\?\/]*\.)?www\.gamersky\.com(:[0-9]{1,5})?\/.*$)/
// @exclude      /(^[^:\/#\?]*:\/\/([^#\?\/]*\.)?www\.baidu\.com(:[0-9]{1,5})?\/.*$)/
// @exclude      /(^[^:\/#\?]*:\/\/([^#\?\/]*\.)?www\.ciweimao\.com(:[0-9]{1,5})?\/.*$)/
// @exclude      /(^[^:\/#\?]*:\/\/([^#\?\/]*\.)?greasyfork\.org(:[0-9]{1,5})?\/.*$)/
// @exclude      /(^[^:\/#\?]*:\/\/([^#\?\/]*\.)?pan\.baiduwp\.com(:[0-9]{1,5})?\/.*$)/
// @connect      baidu.com
// ==/UserScript==

(function() {
  "use strict";

  console.log("UrlLinePlugin");

  //字符串格式化方法
  String.prototype.UrlLineformat = function(args) {
    var result = this;
    if (arguments.length > 0) {
      if (arguments.length == 1 && typeof args == "object") {
        for (var key in args) {
          if (args[key] != undefined) {
            var reg = new RegExp("({" + key + "})", "g");
            result = result.replace(reg, args[key]);
          }
        }
      } else {
        for (var i = 0; i < arguments.length; i++) {
          if (arguments[i] != undefined) {
            var reg = new RegExp("({)" + i + "(})", "g");
            result = result.replace(reg, arguments[i]);
          }
        }
      }
    }
    return result;
  };

  $.fn.replaceText = function(search, replace, action, text_only) {
    return this.each(function() {
      var node = this.firstChild,
        val,
        new_val, // Elements to be removed at the end.
        remove = [];

      if (node) {
        do {
          if (node.nodeType === 3) {
            val = node.nodeValue;
            if (val && val.trim().length > 4) {
              if (!action && replace) {
                new_val = val.replace(search, replace);
              } else {
                var t = search.exec(val);
                if (action && t && t.length > 0) new_val = action(node, val, t);
                else new_val = val;
              }
              if (new_val !== val) {
                if (!text_only && /</.test(new_val)) {
                  $(node).before(new_val);
                  remove.push(node);
                } else {
                  node.nodeValue = new_val;
                }
              }
            }
          }
        } while ((node = node.nextSibling));
      }
      remove.length && $(remove).remove();
    });
  };

  //默认配置参数  default settings
  var default_settings = {
    magnetfilter: /((\u672c\u7ad9\u6682?\u4e0d\u63d0\u4f9b(\u6587\u4ef6)?\u4e0b\u8f7d))|(不提供(文件)?下载)/g,
    magnetPattern: /(magnet:\?)?(xt=)?(urn:btih:)?(?=.{0,31}[0-9])(?=.{0,31}[a-z])([0-9A-Z]{32,40})(?![:.\-\!\?a-z0-9])/gi,
    pixivurl:
      "<a href='https://www.pixiv.net/member_illust.php?mode=medium&illust_id={0}' target='_blank'>{1}</a>",
    bilibiliurl:
      "<a href='https://www.bilibili.com/video/av{0}/' target='_blank'>{1}</a>",
    magneturl:
      "<a href='magnet:?xt=urn:btih:{0}' target='_blank' urlline='true'>magnet:?xt=urn:btih:{1}</a>",
    baiduurl1:
      "<a href='https://pan.baidu.com/s/1{0}' target='_blank' urlline='true' urltype='head'>" +
      " https://pan.baidu.com/s/1{1} </a>",
    baiduurl2:
      "<a href='https://pan.baidu.com/s/1{0}#{1}' target='_blank' urlline='true' >{2}</a>",
    baiduurl3:
      "<a href='https://pan.baidu.com/s/1{0}' target='_blank' urlline='true' urltype='tail' >{1}</a>",
    baiduurl4:
      "<a href='https://pan.baidu.com/s/1{0}#{1}' target='_blank' urlline='true' urltype='head'> https://pan.baidu.com/s/1{2}#{3} </a>",
    baiduPattern0: /((https?:\/\/)?pan\.baidu\.com\/s\/1([a-zA-Z0-9_\-]{5,22})|(https?:\/\/)?pan\.baidu\.com\/share\/init\?surl=([a-zA-Z0-9_\-]{5,22})|[^a-zA-Z]s\/1([a-zA-Z0-9_\-]{5,22})|\bs\/1([a-zA-Z0-9_\-]{5,22}))/,
    baiduPattern1: /(https?:\/\/)?pan\.baidu\.com\/s\/1([a-zA-Z0-9_\-]{5,22})/,
    baiduPattern2: /(https?:\/\/)?pan\.baidu\.com\/share\/init\?surl=([a-zA-Z0-9_\-]{5,22})/,
    baiduPattern3: /\/?s\/1([a-zA-Z0-9_\-]{5,22})/,
    baiduPattern4: /\/?s?\/?1([a-zA-Z0-9_\-]{5,22})(?!\.)/,
    baiduPattern5: /(神秘代码)1([a-zA-Z0-9_\-]{5,22})/,
    common_reg1: /\s*(提取密碼|提取密码|提取码|提取碼|提取|密碼|密码|百度|百度云|云盘|yun|通关口令|本帖隐藏的内容)[::]?\s*(<[^>]+>)?\s*([0-9a-zA-Z]{4,})\s*/,
    common_reg2: /\s*(百度网盘密码|提取密碼|提取密码|提取码|提取碼|提取|密碼|密码|百度|百度云|云盘|yun|通关口令|本帖隐藏的内容)[::]?\s*/,
    common_reg3: /\s*(<[^>]+>)?\s*([0-9a-zA-Z]{4,})\s*/,
    common_reg4: /[::]?\s*(<[^>]+>)?\s*([0-9a-zA-Z]{4,8})/,
    common_r: "\\s*({0})[::]?\\s*(<[^>]+>)?\\s*([0-9a-zA-Z]{4,})\\s*",
    url_reg: /(http|https):\/\/(www.)?(\w+(\.)?)+/,
    Pwnum: 5,
    defaults_ULSetting: {
      Magnet_mk: true,
      Baidu_mk: true,
      CHeck_mk: true,
      Desc_mk: true,
      Log_mk: true,
      DescUrl: [],
      Pwlist: []
    }
  };

  function FormatGet(key) {
    if (key == "DownUrl") {
      if (!arguments[3]) {
        return default_settings.baiduurl1.UrlLineformat(
          arguments[2],
          arguments[2]
        );
      } else {
        return default_settings.baiduurl2.UrlLineformat(
          arguments[2],
          arguments[3],
          arguments[3]
        );
      }
    } else if (key == "Url") {
      return default_settings.baiduurl3.UrlLineformat(
        arguments[0],
        arguments[1]
      );
    } else if (key == "baiduurl4") {
      if (!arguments[2]) {
        return default_settings.baiduurl1.UrlLineformat(
          arguments[1],
          arguments[1]
        );
      } else {
        return default_settings.baiduurl4.UrlLineformat(
          arguments[1],
          arguments[2],
          arguments[1],
          arguments[2]
        );
      }
    }
  }

  function SettingCheck(key, value) {
    if (key == "baiduPattern0") {
      return default_settings.baiduPattern0.test(value);
    } else if (key == "common_reg2") {
      return default_settings.common_reg2.test(value);
    }
  }

  function SettingGet(key, value) {
    let ss;
    if (key == "common_reg4") {
      return (ss = default_settings.common_reg4.exec(value)) && 3 === ss.length
        ? ss[2]
        : null;
    } else if (key == "common_reg3") {
      return (ss = default_settings.common_reg3.exec(value)) && 3 === ss.length
        ? ss[2]
        : null;
    } else if (key == "common_reg1") {
      return (ss = default_settings.common_reg1.exec(value)) && 4 === ss.length
        ? ss[3]
        : null;
    } else if (key == "baiduPattern0") {
      ss = default_settings.baiduPattern0.exec(value);
      return ss[3] ? ss[3] : ss[5] ? ss[5] : ss[6] ? ss[6] : ss[7];
    } else if (key == "baiduPattern4") {
      return (ss = default_settings.baiduPattern4.exec(value)) &&
        2 === ss.length
        ? ss[1]
        : null;
    }
  }

  function Getnextnode(node) {
    let loopnum = default_settings.Pwnum;
    let bnode;
    if (Desc_Mk) {
      bnode = node == node.previousSibling ? null : node.previousSibling;
    } else {
      bnode = node == node.nextSibling ? null : node.nextSibling;
    }
    if (!bnode)
      bnode = Desc_Mk
        ? node.parentNode.previousSibling
        : node.parentNode.nextSibling;
    while (node && !bnode && loopnum >= 0) {
      bnode = Desc_Mk ? node.previousSibling : node.nextSibling;
      node = node.parentNode;
      loopnum--;
    }
    return bnode;
  }

  function FindNextPw(node, Pid) {
    let loopnum = default_settings.Pwnum;
    let isreg2 = false;
    let re = false;
    $(node).attr("urltype", "head");

    let bnode = Getnextnode(node);
    if (bnode) {
      do {
        let bh = bnode.nodeValue ? bnode.nodeValue : bnode.outerHTML;
        let bt = bnode.nodeValue ? bnode.nodeValue : bnode.innerText;
        if (bnode && bt) {
          if (SettingCheck("baiduPattern0", bt)) break;
          let pw = SettingGet("common_reg1", bt);
          if (isreg2) pw = SettingGet("common_reg3", bt);
          if (pw != null) {
            let retext = FormatGet("DownUrl", "", Pid, pw);
            let h = bh.replace(pw, retext);
            $(bnode).replaceWith(h);
            //$(bnode).remove();
            re = true;
            break;
          } else {
            if (SettingCheck("common_reg2", bt)) isreg2 = !isreg2;
          }
        }
        bnode = Getnextnode(bnode);
        if (!bnode) break;
        loopnum--;
      } while (loopnum >= 0);
    }
    $(node).attr("urlline", re);
    $(node).attr("target", "_blank");
    return re;
  }

  function ReplaceorPw(node, e, n) {
    let Pid = SettingGet("baiduPattern0", n[0]);
    if (!Pid) return e;
    let retext = FormatGet("DownUrl", n[0], Pid);
    let v = e.replace(n[0], retext);
    let pw = SettingGet("common_reg1", e);
    let ischeck = false;
    if (!pw) {
      var s = e.substring(e.indexOf(Pid) + Pid.length);
      if (SettingCheck("baiduPattern0", s)) {
        ischeck = true;
      } else {
        pw = SettingGet("common_reg4", s);
      }
    }
    if (pw) {
      let retext2 = FormatGet("DownUrl", "", Pid, pw);
      v = v.replace(pw, retext2);
    } else {
      FindNextPw(node, Pid);
    }
    if (ischeck) {
      v = ReplaceorPw(node, v, [s]);
    }
    return v;
  }

  function UrlLinePlugin(options) {
    this.settings = $.extend({}, default_settings, options);
    this._defaults = default_settings;
    this.init();
  }

  var ULSetting;
  var Desc_Mk = false;
  var MenuID, setupID;

  UrlLinePlugin.prototype = {
    init: function() {
      console.log("init");
      let gm_Setting = GM_getValue("UrlLineSetting");

      ULSetting = $.extend({}, default_settings.defaults_ULSetting, gm_Setting);
      console.log(ULSetting);

      if (ULSetting.Desc_mk) {
        if (ULSetting.DescUrl && ULSetting.DescUrl.length > 0) {
          let DescTxt = `(${ULSetting.DescUrl.join("|")})`;
          if (DescTxt) {
            let DescUrlReg = new RegExp(DescTxt);
            if (DescUrlReg.test(location.href)) Desc_Mk = true;
          }
        }
      }

      addMenu(Desc_Mk);
      function addMenu(mk) {
        if (setupID) {
          if (ULSetting.Desc_mk) GM_unregisterMenuCommand(MenuID);
          GM_unregisterMenuCommand(setupID);
        }
        if (mk) {
          if (ULSetting.Desc_mk)
            MenuID = GM_registerMenuCommand("取消反向查找", OffDescUrl);
          setupID = GM_registerMenuCommand("设置", opensetup);
        } else {
          if (ULSetting.Desc_mk)
            MenuID = GM_registerMenuCommand("设置反向查找", OnDescUrl);
          setupID = GM_registerMenuCommand("设置", opensetup);
        }
      }

      function OnDescUrl() {
        let urls = location.href.match(default_settings.url_reg);
        if (urls) {
          if (!ULSetting.DescUrl) {
            ULSetting.DescUrl = [urls[0]];
          } else {
            ULSetting.DescUrl = ULSetting.DescUrl.concat(urls[0]);
          }
          GM_setValue("UrlLineSetting", ULSetting);
          Desc_Mk = true;
          addMenu(Desc_Mk);
          console.log(ULSetting);
        } else {
          console.log("OnDescUrl 获取URL失敗");
        }
      }

      function OffDescUrl() {
        let urls = location.href.match(default_settings.url_reg);
        if (urls) {
          let index = ULSetting.DescUrl.indexOf(urls[0]);
          if (index > -1) {
            ULSetting.DescUrl.splice(index, 1);
            GM_setValue("UrlLineSetting", ULSetting);
            Desc_Mk = false;
            addMenu(Desc_Mk);
          }
          console.log(ULSetting);
        } else {
          console.log("OffDescUrl 获取URL失敗");
        }
      }

      function opensetup() {
        let content = document.createElement("div");
        document.body.appendChild(content);
        content.outerHTML = `
                <div id="ULPContent">
                <div
                  style="color:#000000;font-size: 14px; width:250px;/*height:300px;*/position:fixed;left:50%;top:50%;margin-top:-50px;margin-left:-180px;z-index:100000;background-color:#ffffff;border:1px solid #afb3b6;opacity:0.95;filter:alpha(opacity=95);box-shadow:5px 5px 20px 0px#000;">
                  <div style="text-align:center">
                    <h3>设置</h3>
                  </div>
                  <div>
                    <div style="float: left;margin: 5px 0px 0px 10px;width: 85px;">magnet链接</div>
                    <div style="float: left;margin: 5px 0px 0px 5px;width: 140px;text-align: center;"><input id="Magnet_mk"
                        type="checkbox"></div>
                  </div>
            
                  <div>
                    <div style="float: left;margin: 5px 0px 0px 10px;clear: left;width: 85px;">百度网盘链接</div>
                    <div style="float: left;margin: 5px 0px 0px 5px;width: 140px;text-align: center;"><input id="Baidu_mk"
                        type="checkbox"></div>
                  </div>
                  <div>
                    <div style="float: left;margin: 5px 0px 0px 10px;clear: left;width: 85px;">检测链接状态</div>
                    <div style="float: left;margin: 5px 0px 0px 5px;width: 140px;text-align: center;"><input id="CHeck_mk"
                        type="checkbox"></div>
                  </div>
                  <div>
                  <div style="float: left;margin: 5px 0px 0px 10px;clear: left;width: 85px;">记录提取码</div>
                  <div style="float: left;margin: 5px 0px 0px 5px;width: 140px;text-align: center;"><input id="Log_mk"
                      type="checkbox"></div>
                  </div>
                  <div>
                    <div style="float: left;margin: 5px 0px 0px 10px;clear: left;width: 85px;">反向查找</div>
                    <div style="float: left;margin: 5px 0px 0px 5px;width: 140px;text-align: center;"><input id="Desc_mk"
                        type="checkbox"></div>
                  </div>
                  <div>
                    <div style="float: left;margin: 5px 0px 0px 10px;clear: left;width: 85px;">反向查找URL</div>
                    <div style="float: left;margin: 5px 0px 0px 5px;width: 140px;text-align: center;"><input id="DescUrl"
                        type="text" value="">
                    </div>
                  </div>
                  <div>
                    <div style="float: left;margin: 10px 0px 10px 10px;clear: left;width: 100px;text-align: center;">
                      <button id="btsvae">Save</button>
                    </div>
                    <div style="float: left;margin: 10px 0px 10px 10px;width: 100px;text-align: center;">
                      <button id="btcolse">Close</button>
                    </div>
                  </div>
                </div>
              </div>
                `;

        $("#Magnet_mk").prop("checked", ULSetting.Magnet_mk);
        $("#Baidu_mk").prop("checked", ULSetting.Baidu_mk);
        $("#CHeck_mk").prop("checked", ULSetting.CHeck_mk);
        $("#Desc_mk").prop("checked", ULSetting.Desc_mk);
        $("#DescUrl").val(ULSetting.DescUrl.join("|"));
        $("#Log_mk").prop("checked", ULSetting.Log_mk);

        $("#btcolse").click(function() {
          $("#ULPContent").css("display", "none");
          $("#ULPContent").remove();
        });

        $("#btsvae").click(function() {
          ULSetting.Magnet_mk = $("#Magnet_mk").prop("checked");
          ULSetting.Baidu_mk = $("#Baidu_mk").prop("checked");
          ULSetting.CHeck_mk = $("#CHeck_mk").prop("checked");
          ULSetting.Desc_mk = $("#Desc_mk").prop("checked");
          ULSetting.DescUrl = $("#DescUrl")
            .val()
            .split("|");
          ULSetting.Log_mk = $("#Log_mk").prop("checked");

          GM_setValue("UrlLineSetting", ULSetting);
          $("#ULPContent").css("display", "none");
          $("#ULPContent").remove();
        });
      }
    },
    Star: function() {
      var t = this;
      console.log("star");
      if (/tieba\.baidu\.com/.test(location.href)) {
        setTimeout(function() {
          console.log("tieba");
          t.StarReplace.call(t);
        }, 2000);
      } else {
        t.StarReplace.call(t);
      }

      document.addEventListener("keydown", function(e) {
        /* CTR + Z */
        if (e.keyCode == 90 && e.ctrlKey) {
          t.StarReplace.call(t);
        } else if (e.keyCode == 88 && e.ctrlKey) {
          t.BaiduFilter(t);
        }
      });
    },
    StarReplace: function() {
      var obj = this;
      if (ULSetting.Magnet_mk) obj.MagnetReplace(obj);
      if (ULSetting.Baidu_mk) obj.BaiduReplace(obj);
      if (ULSetting.CHeck_mk) obj.BaiduCHeckStatus();
    },

    MagnetReplace: function(obj) {
      try {
        obj._subMagnetReplace(obj);
      } catch (err) {
        console.log("Magnet replace Error:" + err.message);
      }
    },

    BaiduReplace: function(obj) {
      /*           try { */
      if (/pan\.baidu\.com/.test(location.href)) {
        obj.BaiduPassword();
        obj.AddPWButton();
        setTimeout(function() {
          let g = $(".K5a8Tu");
          console.log(g);
          if (g) g.hide();
        }, 100);
      } else {
        obj._subBaiduReplace();
      }
      /*             } catch (err) {
                console.log("baidu replace Error:" + err.message);
            } */
    },
    BaiduPassword: function() {
      console.log("baiduPassword");
      // $(".file-name").css('white-space','inherit');
      $("[class*='global-icon-16']").css("float", "left");

      let url = location.href;
      if (location.hash) {
        url = location.href.substring(0, location.href.indexOf("#"));
      }

      let pwinput = $(".QKKaIE");
      if (!pwinput)
        pwinput = $(":contains('请输入提取码'):last").nextAll("input");
      if (!pwinput)
        pwinput = $(":contains('请输入提取码'):last")
          .next()
          .find("input");
      let pwbtn = $("a:contains('提取文件')");
      pwbtn.click(function() {
        let pw = pwinput.val();
        if (pw) {
          let err = $("div:contains('提取码错误')");
          if (err.length > 0) return;
          let pwmap = new Map();
          if (ULSetting.Pwlist) pwmap = new Map(ULSetting.Pwlist);
          pwmap.set(url, pw);
          ULSetting.Pwlist = [...pwmap];
          GM_setValue("UrlLineSetting", ULSetting);
        }
      });

      if (pwbtn.length > 0) {
        //填寫密碼
        if (location.hash && location.hash.length == 5) {
          pwinput.val(location.hash.slice(1, 5));
          setTimeout(function() {
            pwbtn.click();
          }, 50);
        } else {
          if (ULSetting.Pwlist) {
            let pwmap = new Map(ULSetting.Pwlist);
            let pw = pwmap.get(url);
            if (pw) {
              pwinput.val(pw);
              setTimeout(function() {
                pwbtn.click();
              }, 50);
            }
          }
        }
      }
    },
    _subMagnetReplace: function() {
      $("*").replaceText(default_settings.magnetfilter, "");
      function magnetReplacer(match, p1, p2, p3, p4) {
        let value = match
          .replace("magnet:?", "")
          .replace("xt=", "")
          .replace("urn:btih:", "");
        return default_settings.magneturl.UrlLineformat(value, match);
      }
      $("*")
        .not("script")
        .not("a[urlline='true']")
        .replaceText(default_settings.magnetPattern, magnetReplacer);
      console.log(location.href + "is magnet replace");
    },

    _subBaiduReplace: function(obj) {
      function subpw() {
        let h = $(this).attr("href");
        if (SettingCheck("baiduPattern0", h)) {
          let Pid = SettingGet("baiduPattern0", h);
          FindNextPw(this, Pid);
        } else {
          if (/\.bdimg.com/.test(h)) {
            let t = $(this).text();
            if (SettingCheck("baiduPattern0", t)) {
              let tPid = SettingGet("baiduPattern0", t);
              FindNextPw(this, tPid);
            }
          }
        }
      }

      $("*")
        .not("script")
        .not("a")
        .replaceText(
          default_settings.baiduPattern0,
          function(match, p1, p2, p3) {
            let Pid = SettingGet("baiduPattern0", match);
            return FormatGet("Url", Pid, match);
          },
          ReplaceorPw
        );

      $("a[urlline!='true']").each(subpw);
      console.log(location.href + "is baidu replace");
    },

    BaiduFilter: function(obj) {
      let r = window.getSelection();
      if (r.rangeCount > 0) {
        for (let i = 0; i < r.rangeCount; i++) {
          let s = r.getRangeAt(i);
          let seltext = s.toString();
          console.log("Selection" + seltext);
          let filtertext = seltext.replace(
            /([\u4e00-\u9fa5]|[::??!!])+/,
            ""
          );
          let Pid, purl, pw;
          if (SettingCheck("baiduPattern0", filtertext)) {
            Pid = SettingGet("baiduPattern0", filtertext);
          }
          if (!Pid) Pid = SettingGet("baiduPattern4", filtertext);

          if (Pid) {
            let lasttext = $.trim(
              filtertext.substring(filtertext.indexOf(Pid) + Pid.length)
            );
            if (lasttext) {
              pw = SettingGet("common_reg1", lasttext);
              if (!pw) pw = SettingGet("common_reg4", lasttext);
            }
            purl = FormatGet("baiduurl4", Pid, pw);
          }

          if (purl) {
            let a = $(purl)[0];
            try {
              s.insertNode(a);
              let span = $('<span style="color:#A9A9A9"></span>')[0];
              s.surroundContents(span); //将创建的元素环绕在光标选中的文字周围
              s.collapse(false);
              console.log("Selection Success" + s);
            } catch (e) {
              console.log("Selection Error" + e.message);
            }
          }
        }
      }
    },

    AddPWButton: function() {
      console.log("AddPWButton");




//       $("div.slide-show-right").css("width", "500px");
//       let Pbutton = $('<span class="g-dropdown-button"></span>');
//       let button_a = $(
//         '<a class="g-button g-button-blue" data-button-id="b200" data-button-index="200" href="javascript:void(0);"></a>'
//       );
//       let button_a_span = $(
//         '<span class="g-button-right"><em class="icon icon-download" title="跳转到PanDownload"></em><span class="text" style="width: 60px;">PanDown</span></span>'
//       );
//       let Pbutton_span = $(
//         '<span class="menu" style="width:auto;z-index:41"></span>'
//       );

//       button_a.append(button_a_span);
//       Pbutton.append(button_a).append(Pbutton_span);
//       Pbutton.click(function() {
//         let url = window.location.href;
//         url = url.replace("baidu.com", "baiduwp.com");
//         window.open(url, "_blank");
//       });
//       $("div.module-share-top-bar div.bar div.x-button-box").append(Pbutton);
      //Pbutton.insertBefore($("a:contains('请输入提取码')"));

        setTimeout(noad, 500);
        setTimeout(noad, 1000);
        setTimeout(noad, 3000);


        function noad()  {
        $("#web-multi-bottom > a:nth-child(2)").css("display", "none");
        $("#web-right-view").css("display", "none");
        $(".gOIbzPb").css("display", "none");
        $(".vyQHNyb").css("display", "none");
        $(".app-download").css("display", "none");
        $(".KQcHyA").css("display", "none");
        $(".share-center").css("display", "none");
                    $("#web-single-bottom").css("display", "none");


            console.log('noad')
        }

    },
    BaiduCHeckStatus: function() {
      //$("a[urlline]").each(function () {
      $("a[urltype='head']").each(function() {
        let h = $(this).attr("href");
        httpcheck(h, this);
      });
      console.log(location.href + "is BaiduCHeckStatus");

      let pageTexts = [
        { key: "页面不存在", status: "isDisabled" },
        { key: "无法访问", status: "isDisabled" },
        { key: "已过期", status: "isDisabled" },
        { key: "你来晚了", status: "isDisabled" },
        { key: "请输入提取码", status: "isLock" },
        { key: "失效时间", status: "isOk" }
      ];

      const css =
        `.UL_ico_isLock{
                background: transparent url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAANlBMVEUAAAAQj98QldoTltkTldoSltsSltsSl9wRltwSldkQk9sQl9cRltsSltsSltsSltwSltv///8Shj1kAAAAEHRSTlMAEDBQYHCPn6+AQCC/z+/fCc+npAAAAAFiS0dEEeK1PboAAAAHdElNRQfjBxEQKzfUatRwAAAHG0lEQVR42u1d6XrjIAys75v0/Z92k3YTcDeG0SDA28/zu3U86EQI+ePjwoULFy5cuHDhwv+Hqm6atuv6fhjHoZ+mrm3mpfRLCSnMXb9u5vMdbuPUzlXpN4Q4rO8Z7DFOdelX9aDGSLzIdKckM/cSEn9h+pNxqadNzuIb23QaD1B1NIu/OtaWpvAApVL/oC8tFh0axanMqxKLbw0rRWWONI2TUKlHbRoPDLmDfqVmGz/RZeWhr1UWW74YWfXpaDzQZ+LRptKqF0zzC8SRSyh1QutwsSX2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4cOHj4w/uz/+ai4I4RgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOS0wNy0xN1QxNjo0Mzo1NSswODowMF0bWnQAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMDctMTdUMTY6NDM6NTUrMDg6MDAsRuLIAAAAAElFTkSuQmCC") center left no-repeat;
                padding-left: 20px;
                background-size:18px 18px;}` +
        `.UL_ico_isOk{ 
                background: transparent url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAANlBMVEUAAAAwv48sv5crv5YtwpgrwpcswpgswpcswZgrwZcswZgsv5Urv5cov5crv5Utv5YswZf///8E9DF0AAAAEHRSTlMAEEBwj5+vv8/f74BgIDBQKYtp5AAAAAFiS0dEEeK1PboAAAAHdElNRQfjBxEQKzajbeTmAAAGrUlEQVR42t2d26KjIAxFj1cU2+r/f+2g1ta2KAkkJM5+Hk9dQwIBtvD3x6OirKq6blrTdb21fd+ZtmmG4VbemX6QnuAxDk1np2OZxvFIv2YAYhy6Cai+Hgvp9/VDlMNpO3jbph6lX/tLERBvmIf0228q4PHkVzco6AGKMbot9mpvshhlTUGxqhHryYoyMaR+QkykWVxM0WLIoBRVT48xq8+KUgxMGIvqbBw3ugz3K0+rUKe4Tx3/IFkQdrhn4o6vkjM5PmQ54+vR5sKY1bEVLlWeqHqrYsEomswYToZhypIvO/ay5N1X9rDaRBteRdYs/xRleMmE1SZLVt+zlyQhEQ0pYunxFkmiDNIUs4ZkjKKWZljVpHIIjIJ+mTQOwW73W91/wuFIogcUXRzxbaKNIzpPlPRXe7UxHJX0W/sUMQNWyRFRrYjXV0QkD60c04SqhYsMa1exspjhRF3HuxeiE1aa6JvARb3iBFkFTBPNCbIKmCaqE2QVKE2UJ8gqQJrctSfIqvDCnZF+RZiCJf0o/YZQBUqVQnQpDqNAz6V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X6VxaBoBji+zD5H51+TnsF9OBiJfucnN8XMGJZXT32Tm+N01J9sDexkGixxnUP/ayOgM2fUStUWZxVDscZZQhkHbkFwKFVbvcTFc8vAK7xEvVzxOxGsruWCT+M/cud4JL0c+H/lPdpE6OhZf/FNXpI6NVxfLkpN7CjQduxPU2TnyKs5+gOr0jFk1VymEdX5g+XW64NBRudLftoMVPF/2IvkeXqW9Rr5DLiC6xPgOuupG/EyOsGB3W+nvuaBn4MO/6BMS+MZqhTeP7IW4u0N1mmAuf9OcJhZ1caXeNLHIK93VkqCvhFF61mzEpW8qK/qo63YVktRxl4up64Tb2EvSlJX0CZe9qSKJ59BFksKhKU+Sb6VV0ndF9ld7qSiFCThUzH3TL3FdJF130d05L3tDF7bePVMh2HkZ1PwjKLFEGajvmpcJL8qweoWXwIlixGElFV7vY7Co9chaepnwNWjxyjcB5muOpzLVXg1PduyVw4TVoa5qjRZ3fLFHVR4USz4EnqMwBVjG1uBEEcDgQOllMGaNdJ2xNaMYxtosNG50ucZ4654aYv3AWYygVA7RVVhXq6F4aqzRMF19UxBRHhW3Gn7uWHvT1hRfGm+DOUsa27V19dDZEh7dx2Gom9aYvneNZPuuM21T11XJhfAPub71rW4Xo68AAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMDctMTdUMTY6NDM6NTQrMDg6MDD7bFHAAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTA3LTE3VDE2OjQzOjU0KzA4OjAwijHpfAAAAABJRU5ErkJggg==") center left no-repeat;
                padding-left: 20px;
                background-size:16px 16px;}` +
        `.UL_ico_isDisabled{
                background: transparent url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAANlBMVEUAAADPIADVIAXWHQbXHgbYHgXZHgbYHwbYHQXYHgbYHgbYHgbXHATXIAjWHgfXHQXYHgb///9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mgn+0aE0tyaYLNaUDR5n6OmSWFC9+KNSK2NM5UjOCdNfQ02rZjnnDb6UVl28h3bT6RPug8GJkFiB9zZT8F0yrx7Hn0/ofvdTsfe+Uhyxo/St4LvzMR/zaAQ5ONXUmdpVdBdSHEORM49NMbZajXR3zHpcPbzkh1Wc4aUxrFZd+Ay1Xncsumor35A2tRiZK1YsEmvEc6mPL1vpjqpNuuNLf1RdgtKcnXKKo6gMsEt7Qw8lCoY4io2G8VIv5Ywb5fkPoJzP0hUxO2OngbOctHUWvTM2mYGWxNKWfUIUb/UDLnKUJMSqfKghw8w25ZiIWYT0yIeycXtm29blkJJNgHiyPs/HoSjKshyGMe+z7HEzhP+i6x/nqpXP64WEOQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOS0wNy0xN1QxNjo0Mzo1NSswODowMF0bWnQAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMDctMTdUMTY6NDM6NTUrMDg6MDAsRuLIAAAAAElFTkSuQmCC") center left no-repeat;
                padding-left: 20px;
                background-size:16px 16px;}` +
        `.UL_ico_isUnknown{
                background: transparent url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAANlBMVEUAAAD/jwD7iwD9iwD/jQL/jAL/jAH+jAH+jAH+jAH+jAH9iwD8igD/hwD/igD8jAD+jAH///9Amn3zAAAAEHRSTlMAEEBwj5+vv8/f74BgIDBQKYtp5AAAAAFiS0dEEeK1PboAAAAHdElNRQfjBxEQKzajbeTmAAAHgUlEQVR42t1d64KzKgxcvCJY9f2f9qvrcWstQSEToGf+b90hFxISws+PDFRV103Tdr3WgzHDoPuuba0dq4fQB/EMptm22iw0+u7JJ/e/eUFitnq5iaGZVe7/102isl45OGXTzLn/7RMiSLzITLn/+x3qvj65oW0BHkDN0bI4ohvz0qgaBIsNbTZPpiqm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5VQvsFplUy+4Wv2pV9LQqw9/Kuc+Ug6xkhLHhlTPg3cy1nEEakiOD1rAWTkgrV/SWpWIihHzVW4qQgqWUBqSVDLQkKAy5KGxAtiVbPoxG41NLJAQrM8njBcmrooNNx61TIS5iY7CdDMVIIwD1NgEZyymG4uRxYnM1YTyI4m6TBI7HmtR3Wc0RndNffmwVTF4zNa2bd/rYSVlzKD7rmufDKQs4h89eeDtxFSp0gAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOS0wNy0xN1QxNjo0Mzo1NCswODowMPtsUcAAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMDctMTdUMTY6NDM6NTQrMDg6MDCKMel8AAAAAElFTkSuQmCC") center left no-repeat;
                padding-left: 20px;
                background-size:16px 16px;}`;

      let ulbody = document.getElementsByTagName("body")[0];
      if (!ulbody) return;
      let ulstyle = document.createElement("style");
      ulstyle.innerHTML = css;
      ulbody.appendChild(ulstyle);

      function httpcheck(url, ele) {
        GM_xmlhttpRequest({
          url: url,
          method: "GET",
          headers: { "Content-Type": "application/x-www-form-urlencoded" },
          onload: function(response) {
            if (response.status == 200 || response.status == "200") {
              let responseText = response.responseText;
              let status;
              if (!responseText) {
                //为空,地址出现了重定向 或 其它情况
                status = "isUnknown";
              } else {
                responseText = responseText
                  .replace(/\s+/g, "")
                  .substring(0, 14999);

                status = "isUnknown";
                for (let index = 0; index < pageTexts.length; index++) {
                  const element = pageTexts[index];
                  if (responseText.indexOf(element.key) != -1) {
                    status = element.status;
                    break;
                  }
                }
              }
              ele.classList.add("UL_ico_" + status);
            }
          }
        });
      }
    }
  };

  var e = new UrlLinePlugin();
  e.Star();
})();