Project Free Tv - Add Skipper for free-tv-video-online.info

skips free-tv-video-online.info (projectfree.tv) new advertisement page and takes you directly to the video

目前為 2015-07-13 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Project Free Tv - Add Skipper for free-tv-video-online.info
// @namespace    http://www.free-tv-video-online.info/
// @version      1.4.0
// @description  skips free-tv-video-online.info (projectfree.tv) new advertisement page and takes you directly to the video
// @author       William H
// @match        *://www.free-tv-video-online.info/internet/*
// @exclude    *://www.free-tv-video-online.info/player/*
// @grant        none
// @require      http://code.jquery.com/jquery-latest.js
// ==/UserScript==

var preferredHosts = ["vidbull", "vodlocker", "gorillavid"];
var preferredOn = true;
var colorsOn = true;
var colorHosts = {
	"vidbull":"87CEFA", 
	"vodlocker" : "F0FFF0", 
	"gorillavid":"FF69B4",
	"vidto":"FFFFFF",
	"allmyvideos":"FFFFFF",
	"vidspot":"FFFFFF",
	"nosvideo":"FFFFFF",
	"nowvideo":"FFFFFF",
	"videoweed":"FFFFFF",
	"novamov":"FFFFFF",
	"movshare":"FFFFFF",
	"divxstage":"FFFFFF",
	"mooshare":"FFFFFF",
	"180upload":"FFFFFF",
	"vidbux":"FFFFFF",
	"vidxden":"FFFFFF",
	"video":"FF0000", //video is likely video.tt and it's external, so I've colored it red.
	"modovideo":"FFFFFF",
	"movreel":"FFFFFF"
	};

window.addEventListener("load", convertMyLinks, false);

if(document.readyState == "complete"){
    convertMyLinks();
}

function convertMyLinks(){
$(".mnllinklist > a").each(function(){
	currentNode = $(this);
	if($(this).prop("onclick")){
	currentNHost = $(this).text().trim().replace(/	/g, "").split("\n")[3].split(" ")[1].split(".")[0]
		if( $(this).attr('href').search("http%3A") > -1 ){
			$(this).attr('href', ("http://" + $(this).attr('href').split("http%3A")[1].split("&ttl=")[0].replace(/%2F/g, "/").replace(/%2F/g, "/").replace(/%3F/g, "?").replace(/%3D/g, "=")));
		}
		if(colorsOn && !$(this).hasClass("down")){
			if(colorHosts[(currentNHost)]){
				$(this).parent().parent().css({'background-color': "#" + (colorHosts[(currentNHost)])});		
			}
		}
		if(preferredOn){
			if( $.inArray(currentNHost, preferredHosts) == -1 ){
				$(this).parent().parent().remove();
			}
		}
	$(this).attr('href', ($(this).attr('href').split("&ttl=")[0].replace("/interstitial2.html?lnk=", "").replace(/%2F/g, "/").replace(/%2F/g, "/").replace(/%3F/g, "?").replace(/%3D/g, "=")) + "&rnd=" + Math.random());
	}
	});
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址