Project Free TV - Skip Ad Page

Skip the Ad page and timer on Project Free TV

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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;
    }
})();