1024去60秒,附帶神秘效果

去除1024的60秒屏蔽

Ekde 2020/04/04. Vidu La ĝisdata versio.

// ==UserScript==
// @name         1024去60秒,附帶神秘效果
// @namespace    http://tampermonkey.net/
// @version      1.2.4
// @description  去除1024的60秒屏蔽
// @match        *://*/*
// @grant        none
// ==/UserScript==

        var table = document.querySelectorAll('.sptable_do_not_remove');
        if (document.querySelectorAll('.sptable_do_not_remove span').length > 0) {
          var str = document.querySelectorAll('.sptable_do_not_remove span') [0].className;
          for (var j = 0; j < table.length; j++) {
            var td = table[j].querySelectorAll('td');
            for (var i = 0; i < td.length; i++) {
              td[i].innerHTML = '<span class=' + str + '>&nbsp;</span>';
            }
          }
        } else {
          for (var k = 0; k < table.length; k++) {
            table[k].style.display = 'none';
          }
        }


(function() {
    "use strict";
    //当前网址
    var thisSite = window.location.href;

    //91详情页
    if (/view_video/.test(thisSite) && !(/vlogdownloader|view_video_hd/.test(thisSite))) {
        var newTd = '<td style="position:relative;width:50px;">' +
            '<div style="position:absolute;left:0px;top:0px;z-index:999;"><table id="newTable"></table></div></td>';
        var btn1 = '<tr><td><b id="btn1" style="font-size:35px;cursor:pointer;color:#FFFF00;">①</b></td></tr>';
        var btn2 = '<tr><td><b id="btn2" style="font-size:35px;cursor:pointer;color:#FFFF00;">②</b></td></tr>';
        var btn3with4 = '<div style="margin-bottom:10px;font-size:20px;font-weight:bold;color:#FFFF00;">' +
            '<b id="btn3" style="border-style:solid;border-width:1px;cursor:pointer;">点我复制标题并下载</b>&nbsp;&nbsp;&nbsp;' +
            '<b id="btn4" style="border-style:solid;border-width:1px;cursor:pointer;">说明</b></div>';
        var msg = '<div id="msg" style="font-size:20px;font-weight:bold;color:#FFFF00;cursor:default;">' +
            '使用本插件可在已登陆的情况下无限播放和下载<br/>' +
            '未登陆用户可点击左侧的解析按钮播放<br/>' +
            '由于下载地址跨域,下载视频不能自动重命名,如有需要请手动修改</div>';
        $("#container_video>table td:first").after(newTd);
        $("#newTable").append(btn1, btn2);
        $("#containersearch").append(btn3with4, msg);
        $("#msg").hide();
        //解析1
        $("#btn1").click(function() {
            window.open("https://www.vlogdownloader.com/#" + thisSite);
        });
        //解析2
        $("#btn2").click(function() {
            window.open("https://p.91s5.xyz/vip.php?link=" + thisSite, "_self");
        });
        //复制标题并下载
        $("#btn3").click(function() {
            if (document.getElementById("vid") !== null) {
                var title = $("#viewvideo-title")[0].innerText;
                var director = $("#videodetails-content>a:eq(0)")[0].innerText;
                var input = document.createElement("input");
                input.value = title + "-" + director;
                document.body.appendChild(input);
                input.select();
                document.execCommand("Copy");
                input.style.display = "none";
                window.open($("#vid source")[0].src);
            } else window.alert("请先登陆或使用解析");
        });
        //说明
        $("#btn4").hover(function() {
            $("#msg").show();
        }, function() {
            $("#msg").hide();
        });
    }

    //vLog主页
    else if (/vlogdownloader.*view/.test(thisSite)) {
        $("#vlog").submit();
    }

    //vLogd播放页
    else if (/vlogdownloader.*html/.test(thisSite)) {
        //模态框背景固定
        $("#exampleModal").attr("data-backdrop", "static");
        $(".btn.btn-primary:eq(1)").click();
    }

    //无限观看
    if (!/vlogdownloader/.test(thisSite)) {
        document.cookie = "watch_times=0";
    }
})();