Swyter Tweaks for Played.to

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

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name          Swyter Tweaks for Played.to
// @description   Gets rid of all the hurdles and directly plays the video in an immersive player.
// @match         http://played.to/*
// @grant         none
// @version       2013.11.28
// @author        Swyter
// @namespace https://greasyfork.org/users/4813
// ==/UserScript==

if ( btn_download = document.querySelector("#btn_download") )
{
    // Click the accept button if exists
    console.log("-> Skipping the countdown.")
    
    btn_download.disabled=false;
    btn_download.click();
}
else
{
    // Remove all the timeouts, which launch banners and all sorts of ugly monsters (http://stackoverflow.com/a/8345837/674685)
    var highestTimeoutId = setTimeout(";");
    for (var i = 0 ; i < highestTimeoutId ; i++) {
        clearTimeout(i); 
    }


    // Just remove the annoyances, enable the built-in lightbox and enjoy the view
    var ads = document.querySelectorAll(
        "div[style*='block !important;'], #overlayPPU, #OnPlayerBanner, #OnPlayerClose, center>div+script[type='text/javascript']"
    );
    
    Array.prototype.forEach.call(ads,function(node) {
        node.parentNode.removeChild(node);
    });
    
    document.getElementById("lightsOff").click();
}