Skip to content

Instantly share code, notes, and snippets.

@DereC4
Created February 2, 2026 22:24
Show Gist options
  • Select an option

  • Save DereC4/b33ed82932d6ddc6dbc49bd68d571f40 to your computer and use it in GitHub Desktop.

Select an option

Save DereC4/b33ed82932d6ddc6dbc49bd68d571f40 to your computer and use it in GitHub Desktop.
Autoconnect to UT Guest Wifi and skip the pesky login screen, every time! Tampermonkey JavaScript
// ==UserScript==
// @name UT Guest Wi-Fi Auto-Accept
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Clicks the checkbox to trigger events, then clicks "Accept" on the UT Guest Wi-Fi login page.
// @author You
// @match http://login.utguest.org/login.html*
// @grant none
// ==/UserScript==
(function() {
'use strict';
const checkbox = document.getElementById('enableCheckbox');
const acceptButton = document.getElementById('actionButton');
if (checkbox && acceptButton) {
console.log("Tampermonkey: Found checkbox and button.");
if (!checkbox.checked) {
checkbox.click();
}
setTimeout(function() {
acceptButton.click();
}, 100); // 100 millisecond delay, just in case.
} else {
console.error("Tampermonkey: Could not find the checkbox or accept button.");
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment