New script - edu-meta.com

2021/8/10 下午2:42:06

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name        New script - edu-meta.com
// @namespace   Violentmonkey Scripts
// @match       https://www.edu-meta.com/clazz/play.php*
// @grant       none
// @version     1.0
// @author      -
// @description 2021/8/10 下午2:42:06
// ==/UserScript==
function GetQueryString(name) {
         var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
         var r = window.location.search.substr(1).match(reg); //获取url中"?"符后的字符串并正则匹配
         var context = "";

     if (r != null){
     context = r[2];
     }
    reg = null;
    r = null;
    return context == null || context == "" || context == "undefined" ? "" : context;
 }
var lesson_id=GetQueryString("lesson_id");
var courseid=GetQueryString("courseid");
var title=GetQueryString("title");
var rec_m3u8_url="http://metawww.img-cn-hangzhou.aliyuncs.com/courses/" + courseid + "/hls/" + lesson_id + ".m3u8"
var potplayer_rec_m3u8="potplayer://http://metawww.img-cn-hangzhou.aliyuncs.com/courses/" + courseid + "/hls/" + lesson_id + ".m3u8" ;		//快,画质较低(与网页相同)
var potplayer_rec_flv="potplayer://http://metawww.img-cn-hangzhou.aliyuncs.com/courses/" + courseid + "/record/" + lesson_id + ".flv" ;		//部分课程会出错,画质极高(码率是上者5倍左右)
var potplayer_live_rtmp="potplayer://rtmp://live.edu-meta.com/live/" + lesson_id ;		//直播_延迟小(2-3s)_可能只有ppt
var potplayer_live_m3u8="potplayer://http://live.edu-meta.com/live//" + lesson_id +".m3u8" ;		//直播_延迟大(15-30s)_全界面
// window.open( potplayer_live_rtmp );              //打开potplayer放直播
// window.open( potplayer_live_m3u8 );              //打开potplayer放直播
//window.open( potplayer_rec_m3u8);                 //打开potplayer放录播
window.open( potplayer_rec_flv );              //打开potplayer放录播