Last active
April 27, 2020 08:35
-
-
Save jeremy-w/8d04eb16d48357b150ec2d9337129702 to your computer and use it in GitHub Desktop.
Zoom: Auto-Close App Bouncer Tab #userscript
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 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 <[email protected]> | |
// @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