GM_direct_download_links.git
12 years agoAdd the Direct Download link to the page on a UrlFetched event
Antonio Ospite [Fri, 9 Dec 2011 23:49:56 +0000 (00:49 +0100)]
Add the Direct Download link to the page on a UrlFetched event

Calling _add_link() asynchronously will make it easy to add some URL
processing mechanism between _get_URL() and _add_link() in case the URL
we get needs to be processed somehow before being added to the page as
a Direct Download Link.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
12 years agoAdd some comments
Antonio Ospite [Fri, 9 Dec 2011 23:13:47 +0000 (00:13 +0100)]
Add some comments

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
12 years agoAdd initial support for rai.tv
Antonio Ospite [Fri, 9 Dec 2011 17:12:26 +0000 (18:12 +0100)]
Add initial support for rai.tv

For now the URL retrieved is only an intermediate URL of an ASX file
(more explanation on that in later commits).

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
12 years agoSplit out _get_URL() and _add_link() functions
Antonio Ospite [Fri, 9 Dec 2011 15:15:05 +0000 (16:15 +0100)]
Split out _get_URL() and _add_link() functions

This is in preparation for the introduction of async behaviors.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
12 years agoAdd a DDL_log() functions
Antonio Ospite [Fri, 9 Dec 2011 11:27:54 +0000 (12:27 +0100)]
Add a DDL_log() functions

This way we can turn on debugging with alert() when developing new
features and go beck to a more gentle reporting mechanism when we
release a stable version.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
12 years agoPass over a site object to functions not its fields individually
Antonio Ospite [Fri, 9 Dec 2011 10:46:42 +0000 (11:46 +0100)]
Pass over a site object to functions not its fields individually

This is in preparation to support optional fields for site objects.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
12 years agoRename fileElem to urlContainer and fileRegexp to urlRegexp
Antonio Ospite [Thu, 8 Dec 2011 18:57:38 +0000 (19:57 +0100)]
Rename fileElem to urlContainer and fileRegexp to urlRegexp

We are dealing with URL in general, not necessarily with static files on
the server.

12 years agoMisc fixes
Antonio Ospite [Thu, 8 Dec 2011 18:26:17 +0000 (19:26 +0100)]
Misc fixes

 - use innerHTML instead of textContent, this is how it should have
   been from the start, textContent just worked for Repubblica, as the
   URL was in a script, but what if it is in some html code (<a/>,
   <object/>)?

 - check the regexp actually matches something

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
12 years agoFix a couple of error messages
Antonio Ospite [Thu, 8 Dec 2011 18:21:03 +0000 (19:21 +0100)]
Fix a couple of error messages

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
12 years agoAdd some more TODO entries
Antonio Ospite [Thu, 8 Dec 2011 18:18:46 +0000 (19:18 +0100)]
Add some more TODO entries

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
13 years agoRelease version 0.2 0.2
Antonio Ospite [Mon, 14 Nov 2011 10:39:41 +0000 (11:39 +0100)]
Release version 0.2

Main changes are:
  - Support video.repubblica.it
  - Support live streaming via mms
  - Tweak style

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
13 years agoRename to direct_download_links.user.js
Antonio Ospite [Mon, 14 Nov 2011 10:22:04 +0000 (11:22 +0100)]
Rename to direct_download_links.user.js

The '.user.js' suffix allows to update the script directly from the git
repository.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
13 years agoSupport Repubblica TV Live, which streams using mms transport
Antonio Ospite [Mon, 14 Nov 2011 10:17:54 +0000 (11:17 +0100)]
Support Repubblica TV Live, which streams using mms transport

Tweak also the style to avoid overlapping with other page elements.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
13 years agoAdd support for http://video.repubblica.it/*
Antonio Ospite [Mon, 14 Nov 2011 10:04:02 +0000 (11:04 +0100)]
Add support for http://video.repubblica.it/*

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
13 years agoChange the link style
Antonio Ospite [Mon, 14 Nov 2011 10:03:02 +0000 (11:03 +0100)]
Change the link style

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
13 years agoFix spelling errors
Antonio Ospite [Mon, 19 Sep 2011 22:34:31 +0000 (00:34 +0200)]
Fix spelling errors

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
13 years agoInitial import
Antonio Ospite [Tue, 2 Aug 2011 14:35:14 +0000 (16:35 +0200)]
Initial import

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>