Greasy Fork is available in English.

ctrl^C + ctrl^V = 💪

pressing "Numpad Subtract" to copy and paste the very last message in the chat!!

// ==UserScript==
// @name         ctrl^C + ctrl^V = 💪
// @namespace    http://tampermonkey.net/
// @version      ver-6.9
// @description  pressing "Numpad Subtract" to copy and paste the very last message in the chat!!
// @author       vflc
// @match        https://meet.google.com/*
// ==/UserScript==

(function() {
  'use strict';

  document.body.onkeyup = function(e) {
    // 109 is the keycode for "Numpad Subtract"
    // here's the keycode list
    // https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
    if(e.keyCode == 109){
      e.stopPropagation();
      e.preventDefault();

      let chat = document.getElementsByClassName("oIy2qc");
      let text = chat[chat.length - 1].innerHTML;

      let input = document.getElementsByClassName("KHxj8b tL9Q4c");
      input[0].value = text;

      let send = document.getElementsByClassName("uArJ5e Y5FYJe cjq2Db IOMpW Cs0vCd RDPZE");
      send[0].setAttribute("aria-disabled",false);
      send[0].click();
      send[0].setAttribute("aria-disabled",true);
      document.activeElement.blur();
    }
  };

})();