91不限制观看2.0

解除91短视频网站观看数量限制及线路选择

Versión del día 14/04/2023. Echa un vistazo a la versión más reciente.

// ==UserScript==
// @name         91不限制观看2.0
// @version      2.0
// @description  解除91短视频网站观看数量限制及线路选择
// @author       geigei717
// @match        https://0118.workarea7.live
// @icon         https://img-blog.csdnimg.cn/20181221195058594.gif
// @include      http://e1016.91p01.com/*
// @include      https://*.workarea*.live/*
// @include      *.live/view_*
// @include      *.live/v.php?*
// @include      *91porn.com/*
// @include      https://*.workgreat*.live*
// @include      *.91p*.live/*
// @require      https://cdn.staticfile.org/hls.js/8.0.0-beta.3/hls.min.js
// @require      https://cdn.staticfile.org/dplayer/1.9.0/DPlayer.min.js
// @require      https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js
// @run-at       document-end
// @grant        unsafeWindow
// @grant        GM_xmlhttpRequest
// @connect      *
// @namespace   https://greasyfork.org/users/877579
// ==/UserScript==

(function() {
    var a_background_color = "black"; //视频列表的背景颜色,需要更改的话,将black改成其他颜色即可
    if($("#player_one_html5_api")[0] !=undefined){
    var myvideo = videojs('player_one_html5_api').dispose()
    $('.ad_img').remove();
    $("#row > a:first").remove();
    $(".more title").remove();
    $("#videodetails span[class='title'] > div").remove();
    $("#videodetails span[class='title'] > br").remove();
    $("#videodetails:first > div").remove();
    $("#videodetails:first > script").remove();
    $("#videodetails:first > br:first").after("<br/><div id='dplayer' style='width:100%;height:500px;'>").nextAll("iframe").remove();
    $("#videodetails:first > b").remove();
    $("#row div:first").prevAll().remove();
    var vid = $("div[id=VUID]").text()
    var VID = $("div[id=VID]").text()
    $("#linkForm2").remove();
    $("head").append('<link href="https://cdn.staticfile.org/dplayer/1.9.0/DPlayer.min.css" rel="stylesheet"> ')
    $.getScript("https://e1016.91p01.com/js/m.js");
    $("#useraction").append('<span class="title"><br>视频分享(<font color="red">禁止分享在未成年可能看到的地方</font>)html5 :</span><textarea rows="2" name="video_link" id="fm-video_link" class="fullboxtext" onclick="this.focus();this.select()" readonly="readOnly">http://91.9p9.xyz/ev.php?VID='+vid+'</textarea>'); $("h3").after('<br><span class="close91" onclick="close91()"  >关闭</span><a class="a91" href="javascript:" target="_blank"><img src="http://shey.top/4.jpg"  border="0" width="100%" height="100%" /></a>  <br>')
    console.log('https://91.9p9.xyz/ev.php?VID='+vid);
    var ut = [];
    ut[0] = { url:'https://cns.killcovid2021.com',name:"VIP线路"} //视频vip加速地址头
    ut[1] = { url:'https://la2.killcovid2021.com',name:"线路A"}
    ut[2] = { url:'https://fnew.91p49.com',name:"线路D"}
    ut[3] = { url:'https://cdn77.91p49.com',name:"线路I"}
    var jpgUrl = "https://i.killcovid2021.com/thumb/"+VID+".jpg"
    var mp4Url,url,dpurl=[];
    $.ajax({
       url: "https://cns.killcovid2021.com//m3u8/"+VID+"/"+VID+".m3u8",
       type: "get" ,
       async: false,
       success: function (){
         //说明请求的url存在,并且可以访问, m3u8
           mp4Url = "//m3u8/"+VID+"/"+VID+".m3u8"
       },
       error: function (){
         //说明请求的url不存在,不可以访问, mp4
           mp4Url = "//mp43/"+VID+".mp4";
     }});
     console.log("图片链接: "+jpgUrl)
     for(var i=0;i<ut.length;i++){
         url = ut[i].url+mp4Url;
          $.ajax({
              url: url,
              type: "get" ,
              async: false,
              success: function (){
                  //说明请求的url存在,并且可以访问, m3u8
                  dpurl.push({
                    name: ut[i].name,
                    url: url,
                    type: 'auto'
                  })
              },
              error: function (){
                  return;
              }});
            console.log("视频链接: "+ut[i].url+mp4Url)
     }
     console.log(dpurl)
     $("#useraction").append('<span class="title"><br>视频链接(<font color="red">m3u8/mp4</font>):</span><textarea rows="3" name="video_link" id="fm-video_link" class="fullboxtext" onclick="this.focus();this.select()" readonly="readOnly">'+dpurl[0].url+'</textarea>');
     var dp = new DPlayer({
            element: document.getElementById("dplayer"),
            preload: 'auto',
            hotkey: true,    //键盘热键
            volume: 1,       //默认音量
            video: {
                quality: dpurl,
                defaultQuality: 0,//默认选择第一条线路(0:第一条线路 以此类推)
                pic: jpgUrl,
            },
    });

    $(".close91").css({"display":" block","width": "100%",
            "color": "white",
            "font-size": "12px",
            "text-align": "center",
            "margin": "auto",
            "border": "1px #DDD solid",
            "padding": "1px 0",
            "cursor":" pointer"})
    unsafeWindow.close91 = function (){
        var d;
        if ($(".close91").text()==="关闭"){
            $(".close91").text("打开");
            d = 'none';
        }else {
            $(".close91").text("关闭");
            d = 'block';
        }
    $(".a91").css("display",d)
    }
}
     $(".thumb-overlay").parent("a").parent("div").css("background-color",a_background_color);
     $("div[align=center]").parent("div").remove();
     $(document).bind('DOMNodeInserted', function(event) {
        $('a[href^="http"]').each(
            function(){
                if (!$(this).attr('target')) {
                    $(this).attr('target', '_blank')
                }});
    });

})();