Swyter Tweaks for Streamcloud

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

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

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