animixplay Bingewatcher+

Auto-fullscreen, auto-starts, skip intros, jump to next episode

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         animixplay Bingewatcher+
// @namespace    https://greasyfork.org/en/users/10118-drhouse
// @version      1.4
// @description  Auto-fullscreen, auto-starts, skip intros, jump to next episode
// @include      https://animixplay.to/*
// @include      https://v.vvid.cc/*
// @include      https://plyr.link/*
// @require      http://code.jquery.com/jquery-3.4.1.min.js
// @require      https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
// @require      https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js
// @author       drhouse
// @license      CC-BY-NC-SA-4.0
// @icon         https://animixplay.to/icon.png
// ==/UserScript==
this.$ = this.jQuery = jQuery.noConflict(true);
var $ = window.$;

(function($){

    (new MutationObserver(check)).observe(document, {childList: true, subtree: true});

    function check(changes, observer) {

        if($('video')) {
            observer.disconnect();
            $('body').click();
            $("video")[0].play();
            $("#videocontainer > div > div.plyr__controls > button:nth-child(8)").click();
            $('#videocontainer > div').focus();

            var newYearCountdown = setInterval(function(){
                var player = $('video')[0];
                var duration = player.duration;
                var current = player.currentTime;

                window.addEventListener("keydown", function(event) {
                    var x = event.key;

                    if (x == 'v') { // V key skip 89s
                        player.currentTime = current + 89;
                    }

                    if (x == 'n') { // V key skip end
                        player.currentTime = duration;
                    }
                });
            }, 1000);
        }
    }
})(jQuery);