Greasy Fork

Greasy Fork is available in English.

云班课🆕答题小能手🥇(MeTo题库)

【😎蓝墨云考试,测试全自动答题,题目答案搜索功能由MeTo团队提供,一键完成所有资源学习(视频挨个刷时长不存在滴)😎】、【基于生成式AI(ChatGPT)的答案生成】【💙新增AI搜题、AI问答,定制化服务💙】,【🔥一键导入题目🔥】、【🧡新增背题模式(遮挡答案,更好的进行考试复习)🧡】、【欢迎加入qq群:😄286997695😄,共同交流进步,特别感谢MeTo题库提供题目搜索功能】。【💚作者在此保证,脚本无任何诸如(手机号,学校信息,等隐私信息)收集💚】

当前为 2023-08-22 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @run-at       document-body
// @name         云班课🆕答题小能手🥇(MeTo题库)
// @namespace    http://tampermonkey.net/
// @version      4.0
// @description  【😎蓝墨云考试,测试全自动答题,题目答案搜索功能由MeTo团队提供,一键完成所有资源学习(视频挨个刷时长不存在滴)😎】、【基于生成式AI(ChatGPT)的答案生成】【💙新增AI搜题、AI问答,定制化服务💙】,【🔥一键导入题目🔥】、【🧡新增背题模式(遮挡答案,更好的进行考试复习)🧡】、【欢迎加入qq群:😄286997695😄,共同交流进步,特别感谢MeTo题库提供题目搜索功能】。【💚作者在此保证,脚本无任何诸如(手机号,学校信息,等隐私信息)收集💚】
// @author       阿绿
// @note         致谢表:@M_、@吃土豆长大的马铃薯、@悟虚、@台灯没电了、@Pumpkin、@小陈陈陈陈啊、@Sli、@无心人、@29827*0049、@热心解答(以上均是对此脚本做出过有效BUG提交OR提供账户帮助修复OR提供好的idea)
// @match        https://www.mosoteach.cn/web/index.php?*
// @icon         https://bkimg.cdn.bcebos.com/pic/4ec2d5628535e5dde7114110e88eb0efce1b9c16c4e1
// @require      https://cdn.bootcss.com/crypto-js/3.1.9-1/crypto-js.min.js
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        GM_addStyle
// @grant        GM_info
// @grant        GM_xmlhttpRequest
// @grant        GM_registerMenuCommand
// @connect      m.met0.top
// @connect      c.met0.top
// @connect      d.met0.top
// @connect      127.0.0.1
// @connect      gitee.com
// @connect      *
// @license MIT
// ==/UserScript==

(function () {
    function uu(url){
        let obj = {}
        let arr1 = url.split("?")
        let arr2 = arr1[1].split("&")
        for(let i=0;i<arr2.length;i++){
            let res = arr2[i].split("=")
            obj[res[0]]=res[1]
        }
        return obj;
    }
    function aa(e){
        // 元素大小
        let elW = e.currentTarget.offsetWidth
        let elH = e.currentTarget.offsetHeight
        // 元素位置
        let elL = e.currentTarget.offsetLeft
        let elT = e.currentTarget.offsetTop
        // 鼠标位置
        let x = e.clientX
        let y = e.clientY
        // 窗口大小
        let w = window.innerWidth
        let h = window.innerHeight
        // 鼠标到元素左边距离
        let moveX = x - elL
        let moveY = y - elT
        let el = e.currentTarget
        document.onmousemove = function (e) {
            el.style.position = 'fixed';
            el.style.left = e.clientX -moveX + 'px'
            el.style.top =e.clientY - moveY + 'px'
        }
        document.onmouseup = function (e) {
            document.onmousemove = null
            document.onmouseup = null
        }
    };
    // function hh(e){
    //     /*1.用浏览器内部转换器实现html转码*/
    //     htmlEncode:function (html){
    //         //1.首先动态创建一个容器标签元素,如DIV
    //         var temp = document.createElement ("div");
    //         //2.然后将要转换的字符串设置为这个元素的innerText(ie支持)或者textContent(火狐,google支持)
    //         (temp.textContent != undefined ) ? (temp.textContent = html) : (temp.innerText = html);
    //         //3.最后返回这个元素的innerHTML,即得到经过HTML编码转换的字符串了
    //         var output = temp.innerHTML;
    //         temp = null;
    //         return output;
    //     },
    //     /*2.用浏览器内部转换器实现html解码*/
    //     htmlDecode:function (text){
    //         //1.首先动态创建一个容器标签元素,如DIV
    //         var temp = document.createElement("div");
    //         //2.然后将要转换的字符串设置为这个元素的innerHTML(ie,火狐,google都支持)
    //         temp.innerHTML = text;
    //         //3.最后返回这个元素的innerText(ie支持)或者textContent(火狐,google支持),即得到经过HTML解码的字符串了。
    //         var output = temp.innerText || temp.textContent;
    //         temp = null;
    //         return output;
    //     }
    // };
    
    const styleTag = `<style>
	.zhezhao{
		position: fixed;
		left: 0px;
		top: 0px;
		/*background: #000;*/
		width: 100%;
		height: 100%;
		opacity: 0.7;
	}
	.tankuang{
		position: relative;
		background: #000;
		width: 250px;
		height: 50px;
		border-radius: 5px;
		top: 50%;
	}
	#header{
		height: 40px;
		display: flex;
	}
	#header-right{
		position: absolute;
		width: 25px;
		height: 25px;
		border-radius: 5px;
		background: red;
		color: #fff;
		right: 5px;
		top: 5px;
		text-align: center;
	}
</style>`;
    $(styleTag).appendTo('head');
    let $html_text = $(`
        <center>
            <div class="zhezhao" id='zhezhao'>
                <div class="tankuang">
                    <div id="header">
                        <span style="color:#ffffff; font-size:20px;margin: auto;line-height: 50px;" id="layer_msg">复制成功</span>
                    </div>
                </div>
            </div>
        </center>

    `);
    $('body').append($html_text);
    document.getElementById('zhezhao').style.display="none";

    function dianwo(str){
        document.getElementById('layer_msg').innerHTML = str;
        document.getElementById('zhezhao').style.display="";
        setTimeout(function(){
            document.getElementById('zhezhao').style.display="none";
        },3000);
    }

    if(GM_getValue("window.al_yun_xx")){
        window.al_yun_xx = GM_getValue("window.al_yun_xx")
    }else{
        dianwo("正在加载脚本中,请稍后");
        GM_xmlhttpRequest({
            method: "GET",
            url: "https://gitee.com/xiaolv12/yunbanke/raw/master/%E7%AD%94%E9%A2%98%E5%8A%A9%E6%89%8B.js",
            onload: res=> {
                window.al_yun_xx = res.response;
                GM_setValue("window.al_yun_xx",res.response);
            },
            onerror:err=>{
                dianwo("加载失败");
            }
        })
    }
    

})();