linterna-magica-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linterna-magica-commit] [414] Added support for video.golem.de.


From: Ivaylo Valkov
Subject: [linterna-magica-commit] [414] Added support for video.golem.de.
Date: Sun, 28 Jul 2013 20:24:49 +0000

Revision: 414
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=414
Author:   valkov
Date:     2013-07-28 20:24:48 +0000 (Sun, 28 Jul 2013)
Log Message:
-----------
Added support for video.golem.de. See bugs #39067.

Ticket Links:
------------
    http://savannah.gnu.org/bugs/?39067

Added Paths:
-----------
    trunk/src/lm_site_video.golem.de.js

Added: trunk/src/lm_site_video.golem.de.js
===================================================================
--- trunk/src/lm_site_video.golem.de.js                         (rev 0)
+++ trunk/src/lm_site_video.golem.de.js 2013-07-28 20:24:48 UTC (rev 414)
@@ -0,0 +1,63 @@
+//  @licstart The following is the entire license notice for the
+//  JavaScript code in this page (or file).
+//
+//  This file is part of Linterna Mágica
+//
+//  Copyright (C) 2013 Ivaylo Valkov <address@hidden>
+//
+//  The JavaScript code in this page (or file) is free software: you
+//  can redistribute it and/or modify it under the terms of the GNU
+//  General Public License (GNU GPL) as published by the Free Software
+//  Foundation, either version 3 of the License, or (at your option)
+//  any later version.  The code is distributed WITHOUT ANY WARRANTY
+//  without even the implied warranty of MERCHANTABILITY or FITNESS
+//  FOR A PARTICULAR PURPOSE.  See the GNU GPL for more details.
+//
+//  As additional permission under GNU GPL version 3 section 7, you
+//  may distribute non-source (e.g., minimized or compacted) forms of
+//  that code without the copy of the GNU GPL normally required by
+//  section 4, provided you include this license notice and a URL
+//  through which recipients can access the Corresponding Source.
+//
+//  @licend The above is the entire license notice for the JavaScript
+//  code in this page (or file).
+//
+// @source http://linterna-magica.nongnu.org
+
+// END OF LICENSE HEADER
+
+LinternaMagica.prototype.sites["video.golem.de"] = new Object();
+
+LinternaMagica.prototype.sites["video.golem.de"].
+    libswfobject_skip_video_id_extraction =
+function()
+{
+    var id = window.location.href.split("/");
+    id = id[id.length-2];
+
+    return id;
+}
+
+LinternaMagica.prototype.sites["video.golem.de"].extract_object_from_script =
+function()
+{
+    var object_data = 
+       this.extract_object_from_script_swfobject.apply(this,[arguments]);
+
+    if (!object_data)
+    {
+       return null;
+    }
+
+   object_data.link =  "http://video.golem.de/download/"; +
+       object_data.video_id;
+    object_data.video_id = null;
+
+    return object_data;
+}
+
+LinternaMagica.prototype.sites["video.golem.de"].css_fixes = 
+function(object_data)
+{
+    object_data.parent.style.removeProperty("background");
+}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]