Greasy Fork

避免大先生禁止打开控制台

跳过大先生对控制台开启的检测

// ==UserScript==
// @name         避免大先生禁止打开控制台
// @namespace    http://tampermonkey.net/
// @version      2025-02-20
// @description  跳过大先生对控制台开启的检测
// @author       You
// @match        https://chat.zju.edu.cn/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=zju.edu.cn
// @grant        none
// @license MIT
// ==/UserScript==
(function() {
    'use strict';

    // 创建一个新的 div 元素
    var newElement = document.createElement('div');

    // 设置该元素的 ID
    newElement.id = 'vite-chrome-watone';

    // 设置该元素的 CSS 样式为不可见
    newElement.style.display = 'none';

    // 将该元素添加到页面的 body 中
    document.body.appendChild(newElement);
    
})();