// ==UserScript== // @name 方正教务系统成绩明细下载 // @namespace ikaikail@ikaikail.com // @version 5.7 // @description 期末成绩不理想?担心被穿小鞋?不用怕!这款脚本让你期末成绩和平时成绩一目了然!支持VPN环境!直接显示Excel格式成绩单! // @author iKaiKail // @match *://*/jwglxt/cjcx/* // @match https://*/* // @match http://*/* // @match file:///* // @include *:/*/cjcx/* // @icon https://www.zfsoft.com/img/zf.ico // @grant GM_addStyle // @require https://code.jquery.com/jquery-3.6.0.min.js // @require https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js // @downloadURL https://update.greasyfork.icu/scripts/524383/%E6%96%B9%E6%AD%A3%E6%95%99%E5%8A%A1%E7%B3%BB%E7%BB%9F%E6%88%90%E7%BB%A9%E6%98%8E%E7%BB%86%E4%B8%8B%E8%BD%BD.user.js // @updateURL https://update.greasyfork.icu/scripts/524383/%E6%96%B9%E6%AD%A3%E6%95%99%E5%8A%A1%E7%B3%BB%E7%BB%9F%E6%88%90%E7%BB%A9%E6%98%8E%E7%BB%86%E4%B8%8B%E8%BD%BD.meta.js // ==/UserScript== (function() { 'use strict'; // 添加样式 GM_addStyle(` .score-action-btn { background-color: #337ab7 !important; color: white !important; border: none !important; } .score-action-btn:hover { background-color: #286090 !important; } #exportAllScoresBtn { margin-left: 12px; } @media (max-width: 767px) { .col-md-4.col-sm-5 button { margin-top: 8px; margin-left: 0 !important; margin-right: 8px !important; } .col-md-4.col-sm-5 button:last-child { margin-right: 0 !important; } } `); // ================== 核心函数定义 ================== // 创建按钮 const createButtons = () => { return { $downloadButton: $('