Greasy Fork is available in English.

关闭武汉理工大学选课弹出层

关闭武汉理工大学选课页面20秒弹出层

// ==UserScript==
// @name         关闭武汉理工大学选课弹出层
// @namespace    http://tampermonkey.net/
// @version      2.0
// @description  关闭武汉理工大学选课页面20秒弹出层
// @author       ZhangChaojie
// @match        http://218.197.102.183/
// @include      http://202.114.90.180/Course/*
// @include      http://202.114.90.184/Course/*
// @include      http://59.69.102.13/Course/*
// @include      http://202.114.50.131/Course/*
// @include      http://202.114.50.130/Course/*
// @include      http://218.197.102.183/Course/*
// @grant        none
// ==/UserScript==
(function() {
    'use strict';

    // Your code here...
    //关闭弹出层
    $('head').append('<link href="//at.alicdn.com/t/font_1679242_yjh9ahynmpt.css" rel="stylesheet" type="text/css" />');
    let $close = $('<i style="font-size: 14px;color:red;margin:-left:10px;cursor:pointer;" id="closeFade" class="iconfont icon-buoumaotubiao20"></i>');
    $("#MyDiv>div").first().append($close);
    $("#MyDiv>div>i").first().on("click",function() {
        $("#MyDiv").hide();
        $("#fade").hide();
    });

})();