Swyter Tweaks for Streamcloud

Gets rid of all the hurdles and directly plays the video in an immersive player.

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          Swyter Tweaks for Streamcloud
// @description   Gets rid of all the hurdles and directly plays the video in an immersive player.
// @match         http://streamcloud.eu/*
// @grant         none
// @version       2013.12.07
// @author        Swyter
// @namespace https://greasyfork.org/users/4813
// ==/UserScript==

if(btn=document.getElementById("btn_download"))
{
  /* the countdown is capped server-side -- that's actually pretty good */
  btn.addEventListener("DOMSubtreeModified",function(e){
    if (e.target.classList.contains("blue"))
    {
       console.log("Go!",e); e.target.click();
    }
  });
}

else
{
  /* fantastic, heroic, huge, mad skills right here! */
  document.getElementById("turnon").click();

  /* get rid of the huge useless thing on the top and avoid scrolling */
  (header=document.getElementById("header")).parentNode.removeChild(header);
  (footer=document.getElementById("footer")).parentNode.removeChild(footer);
}