projects
/
GM_direct_download_links.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebd7019
)
Add support for soundcloud.com
author
Antonio Ospite <ospite@studenti.unina.it>
Sun, 12 Feb 2012 10:14:46 +0000
(11:14 +0100)
committer
Antonio Ospite <ospite@studenti.unina.it>
Sun, 12 Feb 2012 10:28:42 +0000
(11:28 +0100)
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
direct_download_links.user.js
patch
|
blob
|
history
diff --git
a/direct_download_links.user.js
b/direct_download_links.user.js
index
89fa057
..
a5146c4
100644
(file)
--- 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 */