Greasy Fork

Greasy Fork is available in English.

江视网台视频下载

江西网络电视台(jxntv.cn)视频下载,有时下载会失效,建议多试几次

当前为 2015-11-16 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         江视网台视频下载
// @namespace    http://weibo.com/liangxiafengge
// @version      0.1
// @description  江西网络电视台(jxntv.cn)视频下载,有时下载会失效,建议多试几次
// @author       coolwind
// @run-at       document-end
// @match        http://v.jxntv.cn/*
// @grant        GM_xmlhttpRequest
// @icon         http://v.jxntv.cn/assets/images/iconLogo.jpg
// ==/UserScript==
/* jshint -W097 */
'use strict';

//alert(fvar.file);
var MbdownBTN=document.createElement('a');
MbdownBTN.href="http://dianbo02.jxntv.cn/"+fvar.file;
MbdownBTN.text="下载此视频的标清版";
var PCdownBTN=document.createElement('a');
var downIco  =document.createElement('img');
downIco.src="http://www.easyicon.net/api/resizeApi.php?id=1185846&size=16";
//PCdownBTN.href="http://dianbo01.jxntv.cn/"+fvar.file;
//PCdownBTN.text="高清";
var next=document.getElementsByClassName('player');
prependChild(next[0],MbdownBTN);
prependChild(next[0],MbdownBTN);
prependChild(next[0],downIco);

//在指定节点前插入
function prependChild(parent,newChild){
	    if(parent.firstChild){
	        parent.insertBefore(newChild,parent.firstChild);
	    } else {
	        parent.appendChild(newChild);
	    }
	    
	    return parent;
}