老司机带带我

avgle提取m3u8播放地址,并利用Native HLS Playback实现免点击播放功能

Від 03.11.2017. Дивіться остання версія.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name 老司机带带我
// @namespace https://greasyfork.org/zh-CN/users/14853
// @author bibubi
// @description  avgle提取m3u8播放地址,并利用Native HLS Playback实现免点击播放功能  
// @description  isAutoPlay自动新窗口播放开关(true为自动播放  false为按钮确认)
// @match        *://avgle.com/*
// @require http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js
// @version  0.0.1
// @grant  GM_addStyle
// ==/UserScript==
(function (){
    'use strict';
    $(function (){
        //自动新窗口播放开关  true为自动播放  false为按钮确认
        var isAutoPlay = false;
        //获取播放器(video)对象
        var video = $("source");
        var video_url = null;
        if (video){
            video_url = video.attr("src"); //获取视频链接地址
            console.warn("测试:",video_url);
            var mymessage=confirm("捕获视频成功,新窗口播放? \n如若无法播放,请配合\"Native HLS Playback\"食用");
            if(mymessage==true){
                console.warn("很好,加油!");
                window.open(video_url);
            }
        }
    });
})();