playnano watch and learn

rewards

当前为 2021-09-13 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         playnano watch and learn
// @namespace    http://tampermonkey.net/
// @version      1.0.1
// @description  rewards
// @author       BBoytech
// @match        https://playnano.online/watch-and-learn/*
// @icon         https://www.google.com/s2/favicons?domain=playnano.online
// @grant        none
// ==/UserScript==

(function() {
    var claimTimer = setInterval (function() {claim(); }, Math.floor(Math.random() * 500) + 1000);
    var claimaTimer = setInterval (function() {claima(); }, Math.floor(Math.random() * 2000) + 3000);
    var claimbTimer = setInterval (function() {claimb(); }, Math.floor(Math.random() * 2000) + 3000);
    var claimdTimer = setInterval (function() {claimd(); }, Math.floor(Math.random() * 1000) + 2000);
    if(window.location.href == "https://playnano.online/watch-and-learn/nano/captcha") {
                 var claimcTimer = setInterval (function() {claimc(); }, Math.floor(Math.random() * 100) + 300);
        }

    // click on the next vidoe button
    function claim(){
        if(window.location.href == "https://playnano.online/watch-and-learn/nano/captcha") {
        }
        else if(window.location.href == "https://playnano.online/watch-and-learn/nano") {
            document.getElementsByClassName("button btn-primary watch-next-btn")[0].click();
        }
        else
        {
            document.getElementsByClassName("finished")[0].click();
            location.href = "https://playnano.online/watch-and-learn-next/nano";
        }
    }
    //close ads
    function claima(){
            document.getElementsByClassName("_9k9omwe")[0].click();
    }
    //close ads
    function claimb(){
            document.getElementsByClassName("pl-d4b76db898bed07320419c0b48d1d7f1__close")[0].click();
    }
    // start a new one
    function claimc(){
        if(window.location.href == "https://playnano.online/watch-and-learn/nano/captcha") {
             document.getElementsByClassName("noty_body")[0].click();
            location.href = "https://playnano.online/watch-and-learn/nano";
        }
        else
        {
        }

    }
    // check if adblocker error comes up.
    function claimd()
    {
        document.getElementsByClassName("modal send-nano fade show")[0].click();
        var linkTimer = setInterval (function() {linka(); }, Math.floor(Math.random() * 1000) + 1100);
                function linka(){
                    var linka = window.location.href;
                    location.href = linka;
                }
        //document.getElementsByClassName("button-darker")[0].click();
    }
    setInterval(function() {
        if (document.querySelector(".h-captcha > iframe").getAttribute("data-hcaptcha-response").length > 0) {
           document.querySelector('button[value=keep]').click();
            document.querySelector('button[value=keep]').onclick = function() {
            setTimeout(function() {
                location.href = "https://playnano.online/watch-and-learn/nano";
            }, 1000);
        }
        }
    }, 1000);
})();