To submit the health report
当前为
// ==UserScript==
// @name ZJU Health Report
// @namespace https://wfb.ink/
// @version 21.05.12.10
// @description To submit the health report
// @author beta/β/贝塔
// @match https://healthreport.zju.edu.cn/ncov/wap/default/index
// @grant none
// ==/UserScript==
(function() {
'use strict';
/*
************************************************************************************
封装getElementByXpath函数
************************************************************************************
*/
function getElementByXpath(xpath){
var element = document.evaluate(xpath,document).iterateNext();
return element;
}
//提交表单
var submit = getElementByXpath("/html/body/div[1]/div[1]/div/section/div[5]/div/a");
submit.click();
})();