Skip to content

Instantly share code, notes, and snippets.

View MikeRawding's full-sized avatar

Mike Rawding MikeRawding

  • Niche
  • Rome, New York
View GitHub Profile
@MikeRawding
MikeRawding / google-meet-timer.console.js
Last active January 18, 2024 14:15 — forked from SeanMcP/google-meet-timer.console.js
Sets a timer for Google Meet with chat messages.
;(function () {
let textarea = document.querySelector('textarea[aria-label="Send a message"]')
let submit = document.querySelector('[role="button"][aria-label="Send a message"]')
if (!textarea || !submit) return alert('Uh oh! Something went wrong. Do you have the chat panel open?')
function sendMessage(text) {
textarea.click()
textarea.value = text
submit.removeAttribute('aria-disabled')