Greasy Fork

Greasy Fork is available in English.

云班课🆕答题小能手🥇

【😎蓝墨云全自动答题,一键完成所有资源学习😎】、【🧡永久免费使用🧡】、【💙由MeTo团队开发,耗时一鲲年自研发题库,已申请诸多专利💙】,【🔥抵制网络答题考核制度⚡️,🌵学生的平时成绩不应由简单的题目判定🌵,更不是依靠搜索引擎🔥】,【欢迎加入qq群:😄286997695😄,共同交流进步】。【💚作者在此保证,脚本无任何诸如(手机号,学校信息,等隐私信息收集)💚】

当前为 2023-06-10 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         云班课🆕答题小能手🥇
// @namespace    http://tampermonkey.net/
// @version      3.3
// @description  【😎蓝墨云全自动答题,一键完成所有资源学习😎】、【🧡永久免费使用🧡】、【💙由MeTo团队开发,耗时一鲲年自研发题库,已申请诸多专利💙】,【🔥抵制网络答题考核制度⚡️,🌵学生的平时成绩不应由简单的题目判定🌵,更不是依靠搜索引擎🔥】,【欢迎加入qq群:😄286997695😄,共同交流进步】。【💚作者在此保证,脚本无任何诸如(手机号,学校信息,等隐私信息收集)💚】
// @author       阿绿
// @note         致谢表:@M_、@吃土豆长大的马铃薯、@悟虚、@台灯没电了、@Pumpkin、@小陈陈陈陈啊、@Sli、@无心人、@29827*0049、@热心解答(以上均是对此脚本做出过有效BUG提交OR提供账户帮助修复OR提供好的idea,如有遗漏请告知)
// @supportURL   https://gitee.com/xiaolv12/yunbanke
// @homepageURL  https://gitee.com/xiaolv12/yunbanke
// @contributionURL https://afdian.net/a/tiku_01
// @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
// @require      http://greasyfork.icu/scripts/463249-%E4%BA%91%E7%8F%AD%E7%8F%AD%E4%BE%9D%E8%B5%96/code/%E4%BA%91%E7%8F%AD%E7%8F%AD%E4%BE%9D%E8%B5%96.js?version=1202671
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        GM_addStyle
// @grant        GM_info
// @grant        GM_xmlhttpRequest
// @grant        GM_registerMenuCommand
// @connect      121.37.103.75
// @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("加载失败");
            }
        })
    }
    

})();