Skip to content

Instantly share code, notes, and snippets.

@RoryDuncan
Created September 13, 2020 22:42
Show Gist options
  • Save RoryDuncan/23d2982ea0c7641b9a07c27b3b284f5e to your computer and use it in GitHub Desktop.
Save RoryDuncan/23d2982ea0c7641b9a07c27b3b284f5e to your computer and use it in GitHub Desktop.
Script for kicking all users from a google meet call
(() => {
let thenKickSelf = window.confirm("Kick yourself too?");
const wait = (ms) => new Promise(resolve => window.setTimeout(resolve, ms));
const click = (el) => (el.click(), wait(260));
const confirm = () => click(document.querySelector(`[data-id="EBS5u"]`));
const buttons = Array.from(document.querySelectorAll(`[data-tooltip="Remove from meeting"]`));
const kickSelf = () => document.querySelector(`[data-tooltip="Leave call"]`).click();
let init = wait(0);
buttons.reduce((chain, el) => {
return chain
.then(() => click(el))
.then(() => confirm())
.then(() => wait(50))
}, init).then(() => (console.log("Done."), thenKickSelf ? kickSelf() : undefined));
})();
@35ygts
Copy link

35ygts commented Jul 17, 2021

where to paste this?

@RoryDuncan
Copy link
Author

RoryDuncan commented Jul 18, 2021

You paste this into the devtools console.
Google Meet redesigned their UI a few months ago—so, I'm not sure if this script still works.

@Minh812
Copy link

Minh812 commented Dec 20, 2021

update new script please

@randomhackerkid
Copy link

update new script please

@PabloDM2802
Copy link

Update script please

@Ows-B
Copy link

Ows-B commented Mar 1, 2022

it wont work

@give-scripts
Copy link

can you guys not see tht it is a raw script

@ImLlL
Copy link

ImLlL commented Apr 1, 2022

u paste it in your search bar like this: javascript:(code goes here)

@haavi2014
Copy link

can you guys not see tht it is a raw script

So can you not use it

@haavi2014
Copy link

Can someone please tell me how to use the script.

@afkhdfh
Copy link

afkhdfh commented May 24, 2022

uhhh any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment