// ==UserScript== // @name 免Flash文件上传 // @name:en Upload without Flash // @namespace https://greasyfork.org/zh-CN/users/605474 // @version 0.1 // @description 无需调用Flash,从课程平台上传附件,不必为了传作业多装一个浏览器! // @description:en No need to call Flash, upload accessories from the course platform, do not have to make multiple browsers for the homework! // @author Ziu // @match *://cc.bjtu.edu.cn:81/* // @match *://cc.bjtu.edu.cn:81/meol/common/hw/student/write.jsp?hwtid=* // @icon https://gitee.com/ziuc/utool-filebed/raw/master//20210907-173652-0524.png // @require http://libs.baidu.com/jquery/2.0.0/jquery.min.js // @grant none // @license MIT // @downloadURL none // ==/UserScript== (function() { 'use strict'; let frontTag = "
上传进度:[0%]
'); } else if(item.size>1000000&&item.size<1000000000){ $('#filenames').append(''); } } // 加上传按钮 $('#filenames').after(""); $('#buttonDiv').append("上传"); $('#uploadtrigger').click(function (){ // 构造请求 let oData = new FormData(); for(let i=0;i上传进度:[0%]
'); } else if(item.size>1000000&&item.size<1000000000){ $('#filenames').append(''); } } $('#buttonDiv').remove(); } else { for(let i=0;i上传进度:[0%]
'); } else if(item.size>1000000&&item.size<1000000000){ $('#filenames').append(''); } } $('#buttonDiv').remove(); } $('#filenames').after(""); $('#buttonDiv').append("上传"); $('#uploadtrigger').click(function (){ // 构造请求 let oData = new FormData(); for(let i=0;i