跳过计时(改写)

自动跳过讨厌的计时弹窗,解放双眼

// ==UserScript==
// @name         跳过计时(改写)
// @description  自动跳过讨厌的计时弹窗,解放双眼
// @namespace    http://cas.study.yanxiu.jsyxsq.com/
// @version      2023.10.22
// @author       zz
// @match        http://cas.study.yanxiu.jsyxsq.com/proj/studentwork/*
//
// @grant        none
// ==/UserScript==

setTimeout(function(){
  function confirm(){
    return true;
  }

  window.confirm = confirm;

  function alert(){
  }

  window.alert = alert;
}, 5 * 1000)