// ==UserScript== // @name 超星学习通教师后台加强 // @namespace http://teachroot.com/ // @version 0.19 // @description 针对超星学习通教师后台一些功能进行了优化,方便判卷、分析、预览. // @require https://cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js // @author 辽经职院 冯涛 // @match https://mooc1-1.chaoxing.com/exam/* // @match https://mooc1-1.chaoxing.com/work/* // @match https://mooc1-1.chaoxing.com/scoreAnalysis/toSetWeights* // @match https://mooc1-1.chaoxing.com/moocAnalysis/analysisScore* // @grant GM_setValue // @grant GM_getValue // @run-at document-end // @downloadURL none // ==/UserScript== (function() { 'use strict'; //快速预览试题(资料-》题库)20200711 if(window.location.pathname=='/exam/search'){ //获取各试题url window.currentQuestionIndex=-1; let tr= $("#tableId>tr:gt(0)"); var tagA= $(tr).find("td:eq(1)").children("a"); tagA.each( function(i, e){ let url=$(e).attr("href"); $(e).attr("id","question_" + i); $(e).attr("data-href",url); $(e).attr("href","javascript:void(0);"); $(e).removeAttr("target"); $(e).on("click",function(){ $('#reviewFrame').attr('src', url); $(e).css('font-weight','bold'); currentQuestionIndex=i; $('#myreviewWindow').show(); }); }); //定义弹出框 let reviewWindow='
\
\ \
\
\