NADAmobile Automator

Automate watching NADA. Couple with https://chrome.google.com/webstore/detail/always-on-top/amclpcgcmdkdaichklckjepcjjdcmcii?hl=en

2016/07/27のページです。最新版はこちら

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name           NADAmobile Automator
// @description    Automate watching NADA. Couple with https://chrome.google.com/webstore/detail/always-on-top/amclpcgcmdkdaichklckjepcjjdcmcii?hl=en
// @author         free21
// @include        http://www.nadamobile.com/watch
// @version        1.0.1
// @require     http://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js
// @namespace https://greasyfork.org/users/57063
// ==/UserScript==

$(document).on('click', ".next-button a", function() {
    var form = $("<form></form>");
    form.attr(
    {
        id     : "formid",
        action : $(this).attr("href"),
        method : "GET",
    });

    $("body").append(form);
    $("#formid").submit();
    $("#formid").remove();
    return false;
});
function getRandomArbitrary(min, max) {
    return Math.random() * (max - min) + min;
}
timeto = getRandomArbitrary(1000,10000);
$( '.player--hold video' ).bind('ended', function() {
setTimeout(function() {
$('.next-button a').click();
}, timeto);

});