Skip to content

Instantly share code, notes, and snippets.

View danbenn's full-sized avatar

Daniel Bennett danbenn

View GitHub Profile
@danbenn
danbenn / nycHarrassmentScript.js
Created November 15, 2021 20:26
NYC Sexual Harrassment Training - Automated Script
// The NYC sexual harrassment training can be exhausting to click through,
// over 164 slides! This script automatically clicks "next" button when the voiceover finishes,
// that way you can listen to the audio without having to manually click the "next" button
// You'll still need to fill out the quizzes yourself
// Training available at: https://www1.nyc.gov/assets/cchr/training/english/index.html
const intervalId = setInterval(() => {
const nextSlideButton = document.querySelector('[aria-label="Next Slide "]');
const nextSlideButton2 = document.querySelector('[aria-label="Next Slide "]');
const submitButton = document.querySelector('[aria-label="Submit "]');
{"lastUpload":"2020-06-12T00:36:31.845Z","extensionVersion":"v3.4.3"}