Skip to content

Instantly share code, notes, and snippets.

@jeremy-w
Last active April 27, 2020 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jeremy-w/8d04eb16d48357b150ec2d9337129702 to your computer and use it in GitHub Desktop.
Save jeremy-w/8d04eb16d48357b150ec2d9337129702 to your computer and use it in GitHub Desktop.
Zoom: Auto-Close App Bouncer Tab #userscript
// ==UserScript==
// @name Zoom: Auto-Close App Bouncer Tab
// @namespace https://bignerdranch.com/
// @version 1.0
// @description Close the tab Zoom uses to redirect to its app after several seconds.
// @author Jeremy W. Sherman <jeremy@bignerdranch.com>
// @downloadURL https://gist.github.com/jeremy-w/8d04eb16d48357b150ec2d9337129702/raw/zoom-auto-close-tab.user.js
// @match https://zoom.us/j/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
const secondsToWait = 3;
console.log('Auto-closing tab in %d seconds.', secondsToWait);
const secondsAsMilliseconds = 1000;
const milliseconds = secondsToWait * secondsAsMilliseconds;
setTimeout(function() {
console.log('Auto-closing tab.');
window.close();
}, milliseconds);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment