Project Free TV - Skip Ad Page

Skip the Ad page and timer on Project Free TV

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Project Free TV - Skip Ad Page
// @namespace    http://your.homepage/
// @version      0.20150509
// @description  Skip the Ad page and timer on Project Free TV
// @author       bravadomizzou
// @include      http://www.free-tv-video-online.info/interstitial2.html*
// @include      https://www.free-tv-video-online.info/interstitial2.html*
// @include      http://*.www.free-tv-video-online.info/interstitial2.html*
// @include      https://*.www.free-tv-video-online.info/interstitial2.html*
// @run-at       document-end
// ==/UserScript==

(function() {
    function getParam(val) {
        var result = "",
            tmp = [];
        var items = location.search.substr(1).split("&");
        for (var index = 0; index < items.length; index++) {
            tmp = items[index].split("=");
            if (tmp[0] === val) result = decodeURIComponent(tmp[1]);
        }
        return result;
    }
   
    var timer = document.getElementById("timer");
    var page = getParam("lnk");

    if (null !== timer && null !== page) {
        window.location = page;
    }
})();