您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
2021/7/12下午8:37:13
// ==UserScript== // @name 考试答案 - edoc2.com // @namespace lihuozi // @match http://v5.edoc2.com/inbiz/eform/index // @grant none // @version 1.0 // @author 李豁子 // @description 2021/7/12下午8:37:13 // ==/UserScript== var myFuncs = {}; myFuncs.func1 = function () { if ($.getQueryString("formId") == '180605145746') { console.log('formId=>', $.getQueryString("formId")); var actions = $("td[field='action']"); var rows = actions.each(function (i, el) { if (i > 0) { console.log('html=>', $(this).html()); var id = eform("edoc2ListGrid").method("getRows")[i - 1].ID console.log('id=>', id); var ahtml = '<a class="l-btn" href="' + window.Newurl + '/Testpaper/FindAnswerSituation/?id=' + id + '">答案</a>' $(this).append(ahtml); } }); } }; (function () { 'use strict'; try { setTimeout(myFuncs.func1, 5000); } catch (err) { console.log(err); } })();