From: Antonio Ospite Date: Sat, 1 Sep 2012 10:51:21 +0000 (+0200) Subject: Add support for telecinco.es X-Git-Url: https://git.ao2.it/GM_direct_download_links.git/commitdiff_plain/9d2201a38a164a13b2518fe10d685e0907b7b7a6?ds=inline Add support for telecinco.es You still need to connect from Spain to download the actual video tho. I had success using a HTTP proxy located in Spain. Signed-off-by: Antonio Ospite --- diff --git a/direct_download_links.user.js b/direct_download_links.user.js index 11932f8..e79d916 100644 --- a/direct_download_links.user.js +++ b/direct_download_links.user.js @@ -29,6 +29,7 @@ // @include http://www.kataweb.it/tvzap/* // @include http://www.rai.tv/* // @include http://soundcloud.com/* +// @include http://www.telecinco.es/* // ==/UserScript== // @@ -119,6 +120,12 @@ var supported_sites = [ urlRegexp: /"streamUrl":"([^"]*)"/, linkDestXPath: '//div[@id="main-content-inner"]', }, + { + locationRegexp: /^http:\/\/www\.telecinco.es\/.*$/, + urlContainerXPath: '//video[@class="video-js"]', + urlRegexp: /src="([^"]*)"/, + linkDestXPath: '//div[@class="pg-bd"]', + }, ]; /* Apply different rules to different sites */