U校园环境检测屏蔽

屏蔽U校园的环境检测

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         U校园环境检测屏蔽
// @namespace    https://github.com/backrunner/GreaseMonkeyJS
// @version      1.3
// @description  屏蔽U校园的环境检测
// @author       BackRunner
// @include      *://u.unipus.cn/user/student?*
// @run-at       document-end
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    function addCSS(){
		//变量定义
        var cssText = "";

        cssText += "#layui-layer-shade1 {display: none !important;}";
        cssText += "#layui-layer1 {display: none !important;}"

		var modStyle = document.querySelector('#modCSS');
		if (modStyle === null)
		{
			modStyle = document.createElement('style');
			modStyle.id = 'modCSS';
			document.body.appendChild(modStyle);
		}
		modStyle.innerHTML = cssText;
	}
    addCSS();
})();