Greasy Fork is available in English.

[KissAnime] AutoPlay Next Episode

Autoplays next episode automatically.

Fra 12.01.2018. Se den seneste versjonen.

// ==UserScript==
// @name         [KissAnime] AutoPlay Next Episode
// @namespace    https://greasyfork.org/en/users/152412
// @version      0.6
// @description  Autoplays next episode automatically.
// @author       Skqnder
// @license 	 MIT
// @match        *://kissanime.ru/Anime/*/*
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @compatible   firefox Tested with Tampermonkey
// @compatible   chrome Tested with Tampermonkey
// @grant        GM_getValue
// @grant        GM_setValue
// ==/UserScript==

$(document).ready(function () {

    var NxtPlay = GM_getValue('NxtPlay', 1);

    if (NxtPlay == 1) {

        var check = 'checked';

    } else {

        var check = '';

    }

    $('.barContent').after('<br><input type="checkbox" id="NxtPlay" ' + check + ' > AutoPlay next episode <br>');

    $('#NxtPlay').change(function () {

        if ($('#NxtPlay').is(":checked")) {

            NxtPlay = 1;
            GM_setValue('NxtPlay', 1);

        } else {

            NxtPlay = 0;
            GM_setValue('NxtPlay', 0);

        }
    });

    $('#my_video_1_html5_api').on('ended', function (e) {

        if (NxtPlay == 1) {

            $('#btnNext').click();

        }

    });

})();