Greasy Fork

Greasy Fork is available in English.

长沙理工

理工刷题脚本!

当前为 2024-05-01 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         长沙理工
// @namespace    http://greasyfork.icu/zh-CN/scripts/476690-%E9%95%BF%E6%B2%99%E7%90%86%E5%B7%A5
// @version      0.53
// @description  理工刷题脚本!
// @author       You
// @match       https://*.edu-edu.com.cn/*
// @match       https://*.edu-cj.com/*
// @match       https://*.edu-edu.com/*
// @require  https://cdn.jsdelivr.net/npm/[email protected]
// @match        https://cjexamnew.edu-edu.com/exam-admin/student/exam/single/view/doresult/exam_16114/ckc001/431027200001010516?d=1696419241966&syncUrl=https%3a%2f%2fcsustcj.edu-edu.com.cn%2fScoreReturn%2fScoreList%2fAddCJ%3fmoduleCode%3dcsust_10753_1&m=a24346a768f99c3eb10e9838c899a19a
// @icon         https://www.google.com/s2/favicons?sz=64&domain=edu-edu.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...


    if (window.top === window.self) {
        window.onload=function(){
            // 创建一个新的 div 元素
            var newDiv = document.createElement("div");

            // 为新的 div 元素添加一些内容或属性
            newDiv.innerHTML = "正在使用老王插件..( 使用方法:1.先点平时作业 > 2.开始考试交卷(随便选一个交卷) > 3. 查看答案点击按钮返回重新考试 。)";
            newDiv.style.color = "#fff";
            newDiv.style.background='linear-gradient(to bottom,#7EBBFF,#8EBBFF)';
            // newDiv.style.width='100px';
            newDiv.style.height='50px'
            newDiv.style.display = "flex";
            newDiv.style.justifyContent = "center";
            newDiv.style.alignItems = "center";
            newDiv.style.fontSize='20px';
            // 获取 body 元素
            var body = document.body;
            // 在 body 的最前面插入新的 div 元素
            body.insertAdjacentElement('afterbegin', newDiv);
           const url= location.origin;

            if(window.location.href.startsWith(url+'/exam/student/exam2/doexam/')){
                newDiv.remove();
                var iframe = document.querySelector('iframe')
                iframe.onload =create


            }



        }
    }

})();