From 6f3096e5c94e11a844907a63b27b49f551f92033 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Sun, 12 Feb 2012 11:14:46 +0100 Subject: [PATCH] Add support for soundcloud.com Signed-off-by: Antonio Ospite --- direct_download_links.user.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/direct_download_links.user.js b/direct_download_links.user.js index 89fa057..a5146c4 100644 --- a/direct_download_links.user.js +++ b/direct_download_links.user.js @@ -28,6 +28,7 @@ // @include http://trovacinema.repubblica.it/* // @include http://www.kataweb.it/tvzap/* // @include http://www.rai.tv/* +// @include http://soundcloud.com/* // ==/UserScript== // @@ -110,6 +111,12 @@ var supported_sites = [ processURL: _rai_get_actual_url, linkDest: 'Player', }, + { + locationRegexp: /^http:\/\/soundcloud.com\/.*$/, + urlContainer: 'main-content-inner', + urlRegexp: /"streamUrl":"([^"]*)"/, + linkDest: 'main-content-inner', + }, ]; /* Apply different rules to different sites */ -- 2.1.4