VidShok Skipper

Skips Vidshok.com Wait Timer

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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();
    }
}