Skip to content

Instantly share code, notes, and snippets.

@StefanoChiodino
Last active July 15, 2025 17:29
Show Gist options
  • Save StefanoChiodino/18dfa06d0ddf29a5b0c1502abdf4af3a to your computer and use it in GitHub Desktop.
Save StefanoChiodino/18dfa06d0ddf29a5b0c1502abdf4af3a to your computer and use it in GitHub Desktop.
yearly exercise...
jq = $;
inter = setInterval(function() {
jq("#next_lesson_card_button")?.click();
jq("[aria-label='Play video']")?.click();
jq("[aria-label='Neutral / Don’t Know ']")?.click()
jq("[id='choice-1']")?.click()
jq("[data-cy='submit']")?.click()
jq("#wcs_submit_button")?.click();
jq("#singlechoice-radiogroup > div:last-child")?.click()
var el = document.querySelector("[aria-label='Orange - Disturbing']");
if (el) {
el.dispatchEvent(new MouseEvent('click', {bubbles: true, cancelable: true}));
}
jq("#next").click();
var el = document.querySelector('[data-accepts="events"]');
if (el) {
el.dispatchEvent(new MouseEvent('click', {bubbles: true, cancelable: true}));
}
}, 1000)
// clearInterval(inter);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment