91

这是一个普普通通的91短视频网站脚本

От 27.05.2022. Виж последната версия.

// ==UserScript==
// @name         91

// @version      0.7
// @antifeature  ads
// @description  这是一个普普通通的91短视频网站脚本
// @author       geigei717
// @match        https://0118.workarea7.live
// @icon         https://img-blog.csdnimg.cn/20181221195058594.gif
// @include      https://0118.workarea7.live/view_video.php?viewkey=*
// @include      *.live/view_*
// @include      *.live/v.php?*
// @include      *91porn.com/*
// @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
// @run-at       document-end
// @grant        unsafeWindow
// @grant        GM_xmlhttpRequest
// @connect      *
// @namespace https://greasyfork.org/users/877579
// ==/UserScript==

(function() {

    $('.ad_img').remove();
    $("div[align=center]").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 > br").remove();
    $("#videodetails:first > b").remove();
    $(".video-container").remove();
    $("#videodetails").append('<br/> <div id="dplayer"style="width:100%; height:500px;"></div>')

    $("h3").after('<br><img src="https://s4.ax1x.com/2022/02/17/HIaA3R.jpg"  border="0" width="100%" height="100%" />  <br>')
    var vid = $("#VID").attr('value');
    $("#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>');
    $("#linkForm2").remove();
    $("head").append('<link href="https://cdn.staticfile.org/dplayer/1.9.0/DPlayer.min.css" rel="stylesheet"> ')
    $("body").append('<div class="m"></div>');
    var html = '<script type="text/javascript" src="/js/m.js"></script>';
    $('.m').html(html);
    GM_xmlhttpRequest({
    url:'https://91.9p9.xyz/ev.php?VID='+vid,
    responseType:'text',
    method :"GET",
    headers: {},
    onload:function(data){
        //console.log(data.response)
      var a=data.response
     var x = a.search(/document.write\(/i)+15;
     var y = a.search(/\)\);/i);
     var u = a.slice(x,y)+')'
     //console.log(u)
        var src = eval(u)
        var x1 = src.search(/<source src='/i)+13;
        var y1 = src.search(/' type=/i);
        var u1 = src.slice(x1,y1)  //m3u8
        console.log(u1)
         $("#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">'+u1+'</textarea>');


     var x2 = a.search(/<video /i);
     var y2 = a.search(/<script>/i);
     var u2 = a.slice(x2,y2)
     var x3 = u2.search(/poster="/i)+8;
     var y3 = u2.search(/" >/i);
     var u3 = u2.slice(x3,y3);       //封面图
     console.log(u3)
        var dp = new DPlayer({
        element: document.getElementById("dplayer"),
        preload: '60',
        video: {
            url: u1,
            type: 'auto' ,
            pic: u3,
        },
    });
    }})
     $(document).bind('DOMNodeInserted', function(event) {
        $('a[href^="http"]').each(
            function(){
                if (!$(this).attr('target')) {
                    $(this).attr('target', '_blank')
                }});
    });

})();