VidShok Skipper

Skips Vidshok.com Wait Timer

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name       VidShok Skipper
// @version    0.2.1
// @description  Skips Vidshok.com Wait Timer
// @namespace  https://greasyfork.org/users/2329-killerbadger
// @match      http://vidshok.com/*
// @author     killerbadger
// ==/UserScript==

if(document.forms[0].method_free) 
{
    var theSpans = document.getElementsByTagName("span");
    var loggedIn = self.find("Logout");
    var firstPage = document.forms[0].usr_login;

    if (document.getElementById("countdown_str")) {
        //var theSpans = document.getElementsByTagName("span");
        var important = theSpans[15].id; 
        $$(important).innerHTML = 0;
        //Submits form after waiting 3 seconds - seems to fix skipped timer error
        setTimeout(function() {document.forms["F1"].submit();},3000);
    }
    else if(loggedIn && !firstPage) { 
        document.forms["F1"].submit();  
    }
    else if(firstPage) { 
        document.forms[0].method_free.click();
    }
}