Skip to content

Instantly share code, notes, and snippets.

@robert2d
Last active August 29, 2015 14:22
Show Gist options
  • Save robert2d/b1ee12d931f7e6558b71 to your computer and use it in GitHub Desktop.
Save robert2d/b1ee12d931f7e6558b71 to your computer and use it in GitHub Desktop.
Project Free TV Video Online Hacks for Grease Monkey
// ==UserScript==
// @name Skip Interstitial Ad Pages on Project Free TV
// @namespace https://project-free-tv-video.info
// @version 1.0
// @description fix some of the annoying things with PFTVO
// @author Dave Robertson
// @match http://www.free-tv-video-online.info/internet/*
// @grant none
// ==/UserScript==
var ignoredHosts = ['vidbux', 'videoweed', 'movshare', 'nowvideo', 'movreel', 'vidspud', 'vidspot', '180upload', 'modovideo', 'royalvids', 'nosvideo', 'video.tt', 'allmyvideos', 'mooshare'];
$.each(ignoredHosts, function(index, host) {
$("table[cellpadding=4] tr:contains('" + host + "')" ).hide();
});
$('.down').hide();
$('td[align=right]').hide();
$("td.mnllinklist").each(function(index, link) {
$link = $(link).find("a:not('.down')").clone();
$link.find('div').css("display", "inline-block");
$link.find("br").remove();
if ($link.find(":contains('vidbull')").length > 0){
$link.css("color", "green");
}
$(link).empty().append($link);
});
$.map( $("a[href*='interstitial']"), function(a) {
$(a).attr( 'href', decodeURIComponent( $(a).attr('href') ).slice(24,-1) );
});
@robert2d
Copy link
Author

Instructions:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment