破解立知

破解

目前為 2022-03-23 提交的版本,檢視 最新版本

// ==UserScript==
// @name         破解立知
// @namespace    https://ez118.github.io/
// @version      0.3
// @description  破解
// @author       ZZY_WISU
// @match        https://*.imlizhi.com/slive/pc*
// @match        https://easilive.seewo.com/ZZY_WISU/*
// @license      GNU GPLv3
// @icon         https://edu.seewo.com/res/head/1/default.png
// @run-at document-end
// @grant        GM_xmlhttpRequest
// @grant        GM_download
// ==/UserScript==


function runAsync(url,send_type,data_ry) {
    var p = new Promise((resolve, reject)=> {
        GM_xmlhttpRequest({
            method: send_type,
            url: url,
            headers: {
                "Content-Type": "application/x-www-form-urlencoded;charset=utf-8"
            },
            data:data_ry,
            onload: function(response){
                resolve(response.responseText);
            },
            onerror: function(response){
                //console.log("请求失败");
                reject("请求失败");
            }
        });
    })
    return p;
}

(function() {
    'use strict';
    if(window.location.href.split("@")[0] == "https://easilive.seewo.com/ZZY_WISU/"){
        var data = window.location.href.split("@")[1];
        var dochtml = "";
        var ver = window.location.href.split("@")[2];
        var verlist = [69, 40, 29, 19, 12];
        runAsync("https://s2.imlizhi.com/slive/pc/enow/thumbnail/api/v1/courseware?coursewareId=" + data + "&version=" + verlist[ver] + "&resolution=960_640","GET","content=erwer").then((result)=> {return result;}).then(function(result){
            document.title = "课件浏览器";
            var filelist = eval("("+result+")");
            if(filelist["message"] != "error"){
                for(var i = 0; i <= 100; i ++){
                    try{
                        dochtml += "<img src='" + filelist["data"][i]["downloadUrl"] + "' width=500px><br>";
                    }catch{}
                }
                document.write('<title>课件浏览器</title>' + dochtml);
            } else {
                ver = new Number(ver) + 1;
                if(verlist[ver] != undefined) location.href="https://easilive.seewo.com/ZZY_WISU/@" + data + "@" + ver;
                else document.write("<title>出现问题</title><h2>Sorry, we can't help you find the courseware.</h2><hr><b>You can try to update to the latest version</b>");
            }
        });

    } else {
        setTimeout(function() {var cid = document.getElementsByClassName("enow__stage-wrap")[0].id.replace("stage-", "");window.open("https://easilive.seewo.com/ZZY_WISU/@" + cid + "@0");}, 10000)
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址