NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Auto UW Campus Check-In // @namespace wengh's scripts // @license MIT // @match https://checkin.uwaterloo.ca/campuscheckin/screen.php* // @grant none // @version 1.0 // @author wengh // ==/UserScript== /* jshint esversion:6 */ window.noCovid = () => { const inputs = document.querySelectorAll('tr > td > input[value="No"]'); inputs.forEach(input => { console.log(input); input.click(); }); document.querySelector('input[type=submit]').click(); }; (() => { const ourButton = '<br><button onclick="noCovid();">I don\'t have any COVID-19 symptoms or exposures</button><br>'; const page = document.querySelector('.uw-section--inner'); page.innerHTML = ourButton + page.innerHTML; })();