revadburst - open ad

revadburst - Main - collect and open Ad-link

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        revadburst - open ad
// @namespace   *
// @include     *revadburst.com/viewads.php*

// @version     0.1
// @description revadburst - Main - collect and open Ad-link
// @namespace   *
// @grant       none
// ==/UserScript==
var timer = 1;

function doText() {
    //myInterval = setInterval(doText, 50000);
    timer++;

    //Update Timer
    var inputs = document.getElementsByTagName('h2');
    inputs[0].innerHTML ='Members Ads - auto click (30s): ' + timer;
    
    //element.style.backgroundColor = "red";
    if (timer % 2 == 0) inputs[0].style.color='red';
    else inputs[0].style.color='blue';
    
    if(timer>30){
        timer=1;
        var links = document.links;

        for (var i = 20; i < links.length; i++) {
            links[i].click();break;
            if (links[i].href. indexOf('directory_view.php?i=')>0){
                links[i].click();break;
            }

        }

    }

}



var myInterval = setInterval(doText, 1000);