From: Antonio Ospite Date: Sun, 12 Feb 2012 10:14:46 +0000 (+0100) Subject: Add support for soundcloud.com X-Git-Tag: 0.4~6 X-Git-Url: https://git.ao2.it/GM_direct_download_links.git/commitdiff_plain/6f3096e5c94e11a844907a63b27b49f551f92033?hp=ebd70196b310e0f1c8d4d7b5e6f1686dc835651b Add support for soundcloud.com Signed-off-by: Antonio Ospite --- 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 */