Greasy Fork

SCAU禁止选课(恶搞向)

让大家选不了课,反内卷!

当前为 2022-06-16 提交的版本,查看 最新版本

// ==UserScript==
// @name         SCAU禁止选课(恶搞向)
// @namespace    https://juejin.cn/user/1302297507801358
// @version      0.1.0
// @description  让大家选不了课,反内卷!
// @author       Smooth
// @match        *://jwxt.scau.edu.cn/*
// @grant        none
// @run-at document-idle
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    console.log("脚本启动");
    setInterval(function(){
        var btns=document.getElementsByTagName('button');
        var i=0;
        for(i=0;i<btns.length;i++){
            btns[i].setAttribute('disabled', 'true');
            btns[i].classList.add('is-disabled');}
    }, 500);
    setTimeout(() => {
       alert('别卷啦,选什么课')
    }, 1000)
})();