运行倒计时:5 秒
// ==UserScript== // @name ccu脚本 // @namespace https://github.com/Auroraol // @version 0.1 // @description try to take over the world! // @author lfj // @match https://cdjwc.webvpn.ccu.edu.cn/* // @match https://cdjwc.webvpn.ccu.edu.cn/jsxsd/ // @match https://cdjwc.webvpn.ccu.edu.cn/jsxsd/# // @match https://cdjwc.webvpn.ccu.edu.cn/jsxsd/xspj/xspj_find.do* // @match https://cdjwc.webvpn.ccu.edu.cn/jsxsd/xspj/xspj_list.do* // @match https://cdjwc.webvpn.ccu.edu.cn/jsxsd/xspj/xspj_edit.do* // @match https://cdjwc.webvpn.ccu.edu.cn/jsxsd/framework/main.jsp // @match https://cdjwc.webvpn.ccu.edu.cn/jsxsd/framework/xsMain.jsp // @match https://cdjwc.webvpn.ccu.edu.cn/jsxsd/kscj/cjcx_query* // @match http://1.1.1.2/* // @grant unsafeWindow // @grant GM_addStyle // @grant GM_xmlhttpRequest // @require https://code.jquery.com/jquery-3.1.0.js // @downloadURL https://update.greasyfork.icu/scripts/482390/ccu%E8%84%9A%E6%9C%AC.user.js // @updateURL https://update.greasyfork.icu/scripts/482390/ccu%E8%84%9A%E6%9C%AC.meta.js // ==/UserScript== (function() { 'use strict'; /* globals jQuery, $, waitForKeyElements */ /* eslint no-eval: "off" */ /*******************************************校园网********************************************************/ var user = "19390025718"; //校园网账号 var pwd = "000000"; //校园网密码 if (window.location.href.startsWith("http://1.1.1.2/")){ /******************************************校园网********************************************************/ $("#password_name").val(user); $("#password_pwd").val(pwd); $("#password_submitBtn").click(); }else if (window.location.href.startsWith("http://1.1.1.2/homepage/")) { window.close(); }else if (window.location.href === "https://cdjwc.webvpn.ccu.edu.cn/jsxsd/" || window.location.href === "https://cdjwc.webvpn.ccu.edu.cn/jsxsd/#" || window.location.href === "https://cdjwc.webvpn.ccu.edu.cn/") { /*******************************************界面********************************************************/ // 添加 Bootstrap 5 的 CSS 文件 var bootstrapCss = document.createElement('link'); bootstrapCss.rel = 'stylesheet'; bootstrapCss.href = 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css'; document.head.appendChild(bootstrapCss); // 添加 Bootstrap Icons 的 CSS 文件 var bootstrapIconCss = document.createElement('link'); bootstrapIconCss.rel = 'stylesheet'; bootstrapIconCss.href = 'https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css'; document.head.appendChild(bootstrapIconCss); if (self == top) { // 用于检查当前页面是否是顶层页面 GM_addStyle(` #main{position:fixed;right:0px;bottom:100px;background:#fff} #main-hd{font-size:14px;line-height:30px;overflow:hidden;box-sizing:border-box;height:30px;padding:0 10px;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;color:#fff;background:#4d90fe} #main-hd svg{display:none;margin-top:2px} #main-bd{box-sizing:border-box;height:320px;padding:10px;border:1px solid #ccc} .mainSmallHead{width:35px} .mainSmallHead #main-hd{margin: 0 auto; box-shadow:1px 2px 3px rgba(12,12,12,.3)} .mainSmallHead #main-hd span{display:none}`) // 添加内容 var smallCnt = `
运行倒计时:5 秒