VidShok Skipper

Skips Vidshok.com Wait Timer

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

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