Swyter Tweaks for Streamcloud

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

  1. // ==UserScript==
  2. // @name Swyter Tweaks for Streamcloud
  3. // @description Gets rid of all the hurdles and directly plays the video in an immersive player.
  4. // @match http://streamcloud.eu/*
  5. // @grant none
  6. // @version 2013.12.07
  7. // @author Swyter
  8. // @namespace https://greasyfork.org/users/4813
  9. // ==/UserScript==
  10.  
  11. if(btn=document.getElementById("btn_download"))
  12. {
  13. /* the countdown is capped server-side -- that's actually pretty good */
  14. btn.addEventListener("DOMSubtreeModified",function(e){
  15. if (e.target.classList.contains("blue"))
  16. {
  17. console.log("Go!",e); e.target.click();
  18. }
  19. });
  20. }
  21.  
  22. else
  23. {
  24. /* fantastic, heroic, huge, mad skills right here! */
  25. document.getElementById("turnon").click();
  26.  
  27. /* get rid of the huge useless thing on the top and avoid scrolling */
  28. (header=document.getElementById("header")).parentNode.removeChild(header);
  29. (footer=document.getElementById("footer")).parentNode.removeChild(footer);
  30. }