Skip to content

Instantly share code, notes, and snippets.

@meagar
Last active August 29, 2023 10:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meagar/9c902cf83d464c0572ea8dd37a7faa00 to your computer and use it in GitHub Desktop.
Save meagar/9c902cf83d464c0572ea8dd37a7faa00 to your computer and use it in GitHub Desktop.
User Script: Close zoom tabs upon completion
// ==UserScript==
// @name Close Zoom Tabs
// @namespace Violentmonkey Scripts
// @match https://*.zoom.us/j/*
// @grant none
// @version 1.0
// @author Matthew Eagar <meagar@hey.com>
// @description Close the tabs Zoom spawns
// @homepage https://gist.github.com/meagar/9c902cf83d464c0572ea8dd37a7faa00
// ==/UserScript==
setInterval(() => {
// When the Zoom website has successfully launched the Zoom client, it updates the URL with `#success`
if (window.location.hash.indexOf("success") != -1) {
window.close()
}
}, 1000)
@TarodBOFH
Copy link

You need to add a grant to close windows not opened by the script.

// grant   window.close

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