Last active
August 29, 2023 10:33
-
-
Save meagar/9c902cf83d464c0572ea8dd37a7faa00 to your computer and use it in GitHub Desktop.
User Script: Close zoom tabs upon completion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Close Zoom Tabs | |
// @namespace Violentmonkey Scripts | |
// @match https://*.zoom.us/j/* | |
// @grant none | |
// @version 1.0 | |
// @author Matthew Eagar <[email protected]> | |
// @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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to add a grant to close windows not opened by the script.