// ==UserScript== // @name minerva-online下载报告附件 // @namespace https://greasyfork.org/scripts/431414-minerva-online%E4%B8%8B%E8%BD%BD%E6%8A%A5%E5%91%8A%E9%99%84%E4%BB%B6 // @version 0.7 // @description 在问卷管理页面生效,点击↓加载附件列表,点击√可一键下载全部附件,点击附件名下载单个附件,如弹出窗口被拦截请允许后再进行操作 // @author inoki // @match https://www.minerva-online.com/document.asp?alias=smngr.surveyexplorer // @resource https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; $("tr.persist-header").children().first().after( $("tr.persist-header").children().first().clone(true)); $("div.sticky-wrap").find(":checkbox").each(function(){//checkbox后添加下载按钮 var surveyid=$(this).val(); $(this).parent().after('