This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# USAGE: Paste the code below onto your developer console in the Swiss phase bracket reporting admin view. | |
# It will replace the "Match is coming up" text w/ an input element w/ pre-assigned random stations from 1-15 and pick one as 'STREAM'. | |
# W/ it being an input element, you can then easily change the stream assignment, if you'd like. | |
(function replaceStrongWithEditableInputs() { | |
const strongs = Array.from(document.querySelectorAll('.activityStateColor-sggsOTPF.isCreated-sggks5JB.text-sm strong')); | |
if (strongs.length < 16) { | |
console.warn(`Expected at least 16 <strong> elements, found ${strongs.length}`); | |
return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// USAGE: Paste this in your browser's developer console from the admin 'Attendees' page and then run removeAllAttendees() | |
async function removeAllAttendees() { | |
let totalRemoved = 0; | |
let maxAttempts = 100; | |
let consecutiveFailures = 0; | |
while (maxAttempts > 0) { | |
// Count current attendees | |
const currentButtons = Array.from(document.querySelectorAll('button')).filter(btn => { |