Skip to content

Instantly share code, notes, and snippets.

@cheahjs
Created June 20, 2018 20:53
Show Gist options
  • Save cheahjs/651f2bd32e434976a3e5d77c04264e6d to your computer and use it in GitHub Desktop.
Save cheahjs/651f2bd32e434976a3e5d77c04264e6d to your computer and use it in GitHub Desktop.
Cambridge CamSIS Results Auto Refresh
// Run inside debugger on view results page.
// Select results before running
// 10s interval
setInterval(() => {
// trigger "View Results"
submitAction_win0(document.win0,"HR_LINK_WRK_DETAILS_PB",event);
// wait 9.5s before triggering "Change Term" to refresh page
setTimeout(() => submitAction_win0(document.win0,"HR_LINK_WRK_HR_RETURN_LINK",event), 9500);
}, 10000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment