Last active
August 29, 2015 14:22
-
-
Save robert2d/b1ee12d931f7e6558b71 to your computer and use it in GitHub Desktop.
Project Free TV Video Online Hacks for Grease Monkey
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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) ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instructions: