Greasy Fork

Greasy Fork is available in English.

1024去60秒

去除1024的60秒屏蔽

当前为 2019-05-18 提交的版本,查看 最新版本

// ==UserScript==
// @name         1024去60秒
// @namespace    http://tampermonkey.net/
// @version      1.2.0
// @description  去除1024的60秒屏蔽
// @author       明月天QQ791290123
// @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 + '></span>';
        }
      }
    } else {
      for (var k = 0; k < table.length; k++) {
        table[k].style.display = 'none';
      }
    }


(function() {
    "use strict";

    var thisSite = window.location.href;


    if (/view_/i.test(thisSite) && !(/vlog/i.test(thisSite)) && !(/yyxf\.xyz/i.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 id="btn1"><td style="font-size:35px;font-weight:bold;cursor:pointer;color:#FFFF00;">①</td></tr>';
        var btn2 = '<tr id="btn2"><td style="font-size:35px;font-weight:bold;cursor:pointer;color:#FFFF00;">②</td></tr>';
        var msg = '<div style="font-size:20px;font-weight:bold;color:#FFFF00;cursor:default;">' +
            '部分播放源需要翻墙<br/>登录即是至尊会员</div>';
        $("#container_video>table td:first").after(newTd);
        $("#newTable").append(btn1, btn2);
        $("#containersearch").append(msg);

        if (/Android/i.test(navigator.appVersion)) {
            $("#newTable td").css("font-size", "200px");
        }

        $("#btn1").click(function() {
            window.open("https://www.vlogdownloader.com/#" + thisSite, "_self");
        });

        $("#btn2").click(function() {
            window.open("https://91.yyxf.xyz/vip.php?link=" + thisSite, "_self");
        });
    }


    else if (/vlog/i.test(thisSite) && (/view/i.test(thisSite))) {
        $("#vlog").submit();
    }


    else if (/html/i.test(thisSite)) {

        $("#exampleModal").attr("data-backdrop", "static");
        $(".btn.btn-primary:eq(10)").click();

        $(window).on("click", "video", function() {
            if (this.paused) {
                this.play();
            } else {
                this.pause();
            }
        });

        $(window).keydown(function(e) {
            var video = $("video")[0];
            if (e.keyCode == 32) {
                if (video.paused) {
                    video.play();
                } else {
                    video.pause();
                }
            }
        });
    }


    else if (/vlog/i.test(thisSite) && (/403/i.test(thisSite))) {
        history.back();
    }


    if (!(/vlog/i.test(thisSite)) && !(/yyxf\.xyz/i.test(thisSite))) {
        document.cookie = "watch_times=0";
        document.cookie = "level=7";
        document.cookie = "user_level=7";
    }
})();