您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
将CCTV视频解析成HLS地址.
当前为
// ==UserScript== // @name:en-US CCTV-VIDEO-HLS // @name CCTV视频解析 // @description:en-US parse cctv video to hls url. // @description 将CCTV视频解析成HLS地址. // @namespace http://greasyfork.icu/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 // ==/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) })();