您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
去除西大官网首页灰色滤镜,西大特供版,仅供技术学习交流用
// ==UserScript== // @name 去除灰色_西大特供版 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 去除西大官网首页灰色滤镜,西大特供版,仅供技术学习交流用 // @author Nwuer // @match https://www.nwu.edu.cn/ // @icon https://www.google.com/s2/favicons?sz=64&domain=nwu.edu.cn // @grant unsafeWindow // @license MIT // @require https://cdn.staticfile.org/jquery/3.6.0/jquery.min.js // ==/UserScript== (function() { 'use strict'; $(function () { const domain = document.domain const netIframe = document?.querySelector('iframe#g_iframe')?.contentWindow switch (domain) { case 'www.nwu.edu.cn': $('html').css( 'cssText', 'filter: none !important; -webkit-filter: none !important;' ) $('body').css( 'cssText', 'filter: none !important; -webkit-filter: none !important;' ) break default: $('html').css( 'cssText', 'filter: none !important; -webkit-filter: none !important;' ) $('body').css( 'cssText', 'filter: none !important; -webkit-filter: none !important;' ) break } }) // Your code here... })();