GOM TV Video Download Link

By Sebastian Paaske Last update Nov 4, 2008 — Installed 1,243 times. Daily Installs: 7, 6, 2, 9, 0, 3, 1, 3, 10, 2, 1, 1, 0, 19, 10, 1, 7, 11, 2, 0, 2, 6, 6, 7, 1, 0, 5, 4, 2, 1, 2, 0

There are 1 previous version of this script.

// ==UserScript==
// @name           GOM TV Video Download Link
// @namespace      http://www.mathemaniac.org
// @description    Adds a download link to GOM TV videos.
// @include        http://www.gomtv.net/classic/vod/*
// @include        http://www.gomtv.net/videos/*
// @include        http://www.gomtv.net/classics2/vod/*
// @include        http://www.gomtv.net/gsi/vod/*
// ==/UserScript==

var videoId = document.documentElement.innerHTML.match(/\.swf\?link=(\d+)/)[1];

var vodInfo = document.getElementById('VodInfo');
var downloadLi = document.createElement('li');
var downloadLink = document.createElement('a');
downloadLink.href = "http://flvdn.gomtv.net/viewer/"+videoId+".flv";
downloadLink.appendChild(document.createTextNode('Download'));
downloadLi.appendChild(downloadLink);
vodInfo.appendChild(downloadLi);