Add support for soundcloud.com
authorAntonio Ospite <ospite@studenti.unina.it>
Sun, 12 Feb 2012 10:14:46 +0000 (11:14 +0100)
committerAntonio 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

index 89fa057..a5146c4 100644 (file)
@@ -28,6 +28,7 @@
 // @include        http://trovacinema.repubblica.it/*
 // @include        http://www.kataweb.it/tvzap/*
 // @include        http://www.rai.tv/*
 // @include        http://trovacinema.repubblica.it/*
 // @include        http://www.kataweb.it/tvzap/*
 // @include        http://www.rai.tv/*
+// @include        http://soundcloud.com/*
 // ==/UserScript==
 //
 
 // ==/UserScript==
 //
 
@@ -110,6 +111,12 @@ var supported_sites = [
     processURL: _rai_get_actual_url,
     linkDest: 'Player',
   },
     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 */
 ];
 
 /* Apply different rules to different sites */