跳过计时弹窗

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

  1. // ==UserScript==
  2. // @name 跳过计时弹窗
  3. // @description 自动跳过讨厌的计时弹窗,解放双眼
  4. // @namespace http://study.yanxiu.jsyxsq.com/
  5. // @version 2017.3.16
  6. // @author zhd
  7. // @match http://study.yanxiu.jsyxsq.com/proj/studentwork/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. setTimeout(function(){
  12. function confirm(){
  13. return true;
  14. }
  15. window.confirm = confirm;
  16. function alert(){
  17. }
  18. window.alert = alert;
  19. }, 5 * 1000)