Greasy Fork

Greasy Fork is available in English.

江视网台视频下载

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

当前为 2015-12-24 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

//尚在学习js中,代码太幼稚
//for mobile
var MbdownBTN=document.createElement('a');
MbdownBTN.href="http://dianbo02.jxntv.cn/"+fvar.file;
MbdownBTN.text="手机版";
MbdownBTN.style.display='inline-block';
MbdownBTN.style.marginLeft='15px';
//for PC
var PCdownBTN=document.createElement('input');
var PCInfo=document.createElement('div');
PCdownBTN.type="button";
PCdownBTN.value="电脑版(暂不支持)";
PCdownBTN.onclick=function(){showLink()};
function showLink(){
    PCInfo.innerHTML='请右键复制,并把其中的<br>换成换行符\r\nurl: rtmp://dianbo01.jxntv.cn/videoPlay/mp4:'+fvar.file+'\r\nrapp: videoPlay\n\rflashVer: WIN 19,0,0,226\r\npageUrl: '+window.location+'\r\nswfUrl: '+document.getElementsByTagName('object')[0].data+'<br>tcUrl: rtmp://dianbo01.jxntv.cn/videoPlay/'+fvar.file;
}
/*
url: rtmp://dianbo01.jxntv.cn/videoPlay/mp4:2015/2/ezcb/11m/1120/13.mp4
app: videoPlay
flashVer: WIN 19,0,0,226
pageUrl: http://v.jxntv.cn/news/tech/20151120/729088.shtml
swfUrl: http://v.jxntv.cn/assets/player/cx20150523.swf
tcUrl: rtmp://dianbo01.jxntv.cn/videoPlay
playPath: mp4:2015/2/ezcb/11m/1120/13.mp4
*/
//down icon
var downIco  =document.createElement('div');
downIco.innerHTML='<img src="http://www.easyicon.net/api/resizeApi.php?id=1185846&size=16">电脑版为RTMP流媒体,必须使用Orbit或刀锋下载<br>';
var next=document.getElementsByClassName('playerbox');
prependChild(next[0],MbdownBTN);
prependChild(next[0],PCdownBTN);
prependChild(next[0],downIco);

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