油猴刷题计时脚本

学校要做‘实验室安全考试刷题’,每五分钟就会弹出来 “已经学习5分钟,是否继续”的弹窗。

我就在油猴上写了一个简单脚本取消弹窗。

// ==UserScript==
// @name         跳过计时弹窗
// @description  自动跳过讨厌的计时弹窗
// @namespace    http://tampermonkey.net/
// @version      0.1
// @author       yilingsama
// @match        http://*/* (自己要匹配的网址)
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
  console.log('running....')
  function a(){
    console.log('confirm')
    return true;
  }

  window.confirm = a;


    // Your code here...
})();

猜你喜欢

转载自blog.csdn.net/intmain_S/article/details/120892085