From 15568f917c838d7248ee7967dadba1b446eea5d4 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Tue, 11 Jun 2019 12:52:05 +0800 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 050a462..029a038 100644 --- a/README.md +++ b/README.md @@ -47,3 +47,14 @@ N_m3u8DL-CLI.exe [OPTIONS] URL输入框可接受txt文件路径或文件夹拖入以进行批量下载: txt文件格式为每行一个m3u8地址; 文件夹内存在若干m3u8文件。 +## JS获取腾讯视频、优酷m3u8 +``` +javascript:prompt(videoPlayer.getData()._videoData.title,Array.reverse(Array.from(videoPlayer.getData()._playlistData.stream))[0].m3u8_url); +``` + +![录屏](https://i.loli.net/2019/06/11/5cff32193455f17147.gif) +``` +javascript:prompt(PLAYER._DownloadMonitor.context.dataset.title,PLAYER._DownloadMonitor.context.dataset.currentVideoUrl); +``` + +![录屏](https://i.loli.net/2019/06/11/5cff3233336d339889.gif)