New script - edu-meta.com

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey 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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==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放录播