// ==UserScript== // @name:en-US CCTV-VIDEO-HLS // @name CCTV视频解析 // @description:en-US parse cctv video to hls url. // @description 将CCTV视频解析成HLS地址. // @namespace https://greasyfork.org/users/135090 // @version 0.1 // @author ZWB // @license CC // @grant none // @run-at document-end // @match https://tv.cctv.cn/*/*/*/VID*.shtml* // @icon https://tv.cctv.cn/favicon.ico // @downloadURL none // ==/UserScript== (function() { 'use strict'; setTimeout(function(){ $.getJSON("https://vdn.apps.cntv.cn/api/getHttpVideoInfo.do?pid="+guid,function(res){ document.querySelector(".playingVideo>.tit").onclick=function(){ window.open(res.hls_url) }; document.querySelector("#video").remove(); document.querySelector(".playingVideo>.tit").textContent+="*HLS"; }); },2000) })();