您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Refreshes Page every 5 seconds until the latest report in the queue is complete. Will beep when report is complete.
// ==UserScript== // @name FellowshipOne Report Queue: Auto refresh // @namespace [email protected] // @version 0.5 // @description Refreshes Page every 5 seconds until the latest report in the queue is complete. Will beep when report is complete. // @author Tony Visconti // @match https://reportlibrary.fellowshipone.com/ReportLibrary/ReportsQueue/Index.aspx* // @grant none // ==/UserScript== function reloadPage() { setTimeout(function() { window.location.href = 'https://reportlibrary.fellowshipone.com/ReportLibrary/ReportsQueue/Index.aspx?refresh=true'; }, 5000); } var img = document.querySelector("#ctl00_MainContent_grdReports > tbody > tr:nth-child(2) > td:nth-child(1) > img"); if(img !== null &&(img.alt === "Pending" || img.alt === "Submitted")) { console.log("Page Reloading"); reloadPage(); } else { if(window.location.href.includes('refresh')) { console.log("Report Complete"); document.querySelector("body").innerHTML += '<audio id="audio" src="https://www.soundjay.com/button/beep-07.wav" autoplay="true" ></audio>'; } }