Greasy Fork

来自缓存

Greasy Fork is available in English.

U校园环境检测屏蔽

屏蔽U校园的环境检测

当前为 2019-03-14 提交的版本,查看 最新版本

// ==UserScript==
// @name         U校园环境检测屏蔽
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  屏蔽U校园的环境检测
// @author       BackRunner
// @match        *://u.unipus.cn/user/student?*
// @grant        none
// ==/UserScript==

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

        cssText += "#layui-layer-shade1{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;
	}
})();