I'm currently making a chrome extension for google meet and am trying to detect if the caption button was clicked. I currently have this code:
const button = document.getElementsByClassName('VfPpkd-Bz112c-LgbsSe fzRBVc tmJved xHd4Cb rmHNDe Qr8aE')[0];
button.addEventListener('click', () => {
console.log('clicked');
});
This is working if I directly inject it into the console but not from the chrome extension. Any help would be greatly appreciated!